Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Debug version crashes the second time

Debug version crashes the second time

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiodebugginghelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    F Braem
    wrote on last edited by
    #1

    Hi all, I have a weird problem. When I debug my application in Visual Studio the first time, everything works fine. When I press F5 again my application has an access violation when I move the mouse over the commandbar. Sometimes after stopping the debug, the visual studio crashes also. I use Visual Studio 6, WTL 3.1 and running on Windows98. Franky

    T 1 Reply Last reply
    0
    • F F Braem

      Hi all, I have a weird problem. When I debug my application in Visual Studio the first time, everything works fine. When I press F5 again my application has an access violation when I move the mouse over the commandbar. Sometimes after stopping the debug, the visual studio crashes also. I use Visual Studio 6, WTL 3.1 and running on Windows98. Franky

      T Offline
      T Offline
      Tim Deveaux
      wrote on last edited by
      #2

      I've seen this, I think, or something like it on win98. Sometimes something seems to go squirrely with the common control dll (?) during a VC session and as soon as the mouse moves over a toolbar button in my app it faults. I think I've seen it when I switch to a release build. Once this occurs, toolbars in other apps can start to exhibit the same behavior - which makes it hard to even use explorer. Rebooting usually straightens things out. My 98 system is a very 'feature packed' mixture of DLL pudding at this point, still proudly displaying april 98 on bootup. I think it was upgraded from the beta. Plus, it supports two monitors, each with its own driver, which might have an impact. The prime suspect in my case might be a rollback from IE 5.0 that occurred sometime back, and left IE a bit crippled - thats why I suspect some sort of comctl32 messup - which certainly could impact on toolbar functionality, styles etc - though I don't know if I've seen this happen for the command bar. Does this always occur? If you fire up your machine and don't open IE, going straight to VC instead, does that make any difference?

      F 1 Reply Last reply
      0
      • T Tim Deveaux

        I've seen this, I think, or something like it on win98. Sometimes something seems to go squirrely with the common control dll (?) during a VC session and as soon as the mouse moves over a toolbar button in my app it faults. I think I've seen it when I switch to a release build. Once this occurs, toolbars in other apps can start to exhibit the same behavior - which makes it hard to even use explorer. Rebooting usually straightens things out. My 98 system is a very 'feature packed' mixture of DLL pudding at this point, still proudly displaying april 98 on bootup. I think it was upgraded from the beta. Plus, it supports two monitors, each with its own driver, which might have an impact. The prime suspect in my case might be a rollback from IE 5.0 that occurred sometime back, and left IE a bit crippled - thats why I suspect some sort of comctl32 messup - which certainly could impact on toolbar functionality, styles etc - though I don't know if I've seen this happen for the command bar. Does this always occur? If you fire up your machine and don't open IE, going straight to VC instead, does that make any difference?

        F Offline
        F Offline
        Franky Braem
        wrote on last edited by
        #3

        Thanks Tim for your reply. While searching the net I've found several identical questions about this problem. It seems that it only occurs on Win98. The problem is that comctl32.dll uses a global adress somewhere for the toolbar. This address invalidates when you debug an application. A solution is: before starting the debugger: run a application and activate a tooltip on a toolbar. Keep this application open while your debugging. This way the global adress keeps the same for as long as the application is open. This solution works fine for me now.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups