![](sad.gif)
Help with debugging Direct Draw in Windowed mode
Hi,
I''ve been trying to get my demo app to run in windowed mode for a while now so that I can debug it more effectively but I keep running into problems with the Visual Studio 6 debugger. I was wondering if somebody could help me.
I am having trouble debugging whilst the screen is locked, for some reason whenever I run my app within the debugger it crashes as soon as it gets to the direct draw surface lock function call. Is this supposed to happen? Is there something preventing the debugger working whilst the screen is locked?
Any help would be great, i''m relly at a dead end with this - I want to be able to spend time working on the guts of my AI demo but I keep having trouble with the basic screen drawing stuff
-F
![](sad.gif)
--:D, F
The reason its happening is that its using Win16Mutex, a way to access memory from hardware. You''ll prolly have to put the surface your locking into system memory and use DDLOCK_NOSYSLOCK when locking it. This just tells it not to use Mutex which should allow you to debug it. I''ld put it back to fullscreen and regular lock when you''re done debugging though.
Robert Warden
Lasershot Shooting Simulations
![](www.lasershot.com/logo3.jpg)
Robert Warden
Lasershot Shooting Simulations
![](www.lasershot.com/logo3.jpg)
Bobby Ward - COM Guru in training
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement