PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Windows Debugging Problem

I'm developing using GapiDraw in VC++6 on Windows 2000.

Sometimes, when I run the PC build in the debugger then exit it (by shift-F5 or clicking the X in the program window), it experiences some sort of exception. Sometimes after that, when I try to run the program (either in the debugger or on its own) it won't run properly.

The program appears in the task list, but its window never appears. Restarting the program doesn't help. The only thing that seems to help at this point is rebooting (a major pain).

I assume Windows is getting into some sort of weird state. Does anyone else experience this? Does anyone know more about what is happening? Is there a quicker way to fix it so I don't have to reboot?
Is your program multi-threaded? Can't you find its process and kill it in the task manager?

Dan East
The program uses GapiDraw and that's it, so I guess it's not multithreaded.

In this state, the program runs and appears in the task manager, but no window shows up. I can kill it in the task manager, or kill it from the debugger if it was launched that way. But running it again I get the same result. Rebooting fixes the problem.

I assume Windows 2000 is getting into a weird state.

The program was deleting an invalid pointer on exit, that's why it got the access violation exception on exit. It typically takes a few to a dozen of these to put Windows into the weird state (i.e. it doesn't always happen the first time).

I've fixed the pointer problem, but I'm still wondering why Windows 2000 gets into this state (if that's indeed what is happening), and how to fix it besides rebooting (a major pain).
I've not had any troubles whatsoever using the same setup as you. Do you have the latest service packs for Win2K and VS6 installed? If you want me to try your build/app on my setup here I'm more than happy to.