ddhelp crash at Windows Function SetPixelFormat()
Hello,
I''m programming openGL with windows and got the following problem: Everytime I start my program the second time, ddhelp crashes while trying to set the pixel format with the windows function SetPixelFormat(). Somehow, it doesn''t happen if I simplify my program just to the init / exit routines of openGL. So I guess the init / exit stuff must be programmed correctly. I also compared with the nehe tutorials, they do it the same way. I''m not sure, maybe the problem is not openGL, I also use DirectInput and DirectSound (but that would be off-topic I think).
Maybe I''ve got luck and someone is here that got the same problem some time ago and can help me out?
Thanks,
Lyve
http://nils-music.tk
_____________________________________http://www.winmaze.de, a 3D shoot em up in OpenGL, nice graphics, multiplayer, chat rooms, a nice community, worth visiting! ;)http://www.spheretris.tk, an upcoming Tetrisphere clone for windows, a 3D tetris game on a sphere with powerful graphics for Geforce FX and similar graphics cards.
DDHelp.exe is a program which cleans up after dodgy DirectDraw/Direct3D apps which "forget" to reset the screen resolution or generally leave stuff lurking. My guess is that when you create a DirectX object or whatever you do with C++ (you didn''t say what language you''re using), it spawns DDHelp to clean up if you forget.
If you''ve got the DirectX 7 or 8 SDK, then there should be a "Kill DDHelp" or "Kill Help" utility in the start menu. Run that, then try the program. Also check what you''re doing in the SetPixelFormat. Try other combinations (you can request things like GDI or DirectX support as well as OpenGL). Also, try doing everything you were doing EXCEPT remove anything DirectX related. No DirectX init/exit, no DirectX objects, no DirectX functions calls, no DirectX nothing. That should prevent DDHelp being started, and should (hopefully) sort out the problem. Don''t forget to use Kill Help or whatever as well to amek sure it''s not running.
--Thomas McCorkell
Just what is Karma? Is it a way to rate people? A way of assigning privilege levels? Or is karma just an anti-spam system?
If you''ve got the DirectX 7 or 8 SDK, then there should be a "Kill DDHelp" or "Kill Help" utility in the start menu. Run that, then try the program. Also check what you''re doing in the SetPixelFormat. Try other combinations (you can request things like GDI or DirectX support as well as OpenGL). Also, try doing everything you were doing EXCEPT remove anything DirectX related. No DirectX init/exit, no DirectX objects, no DirectX functions calls, no DirectX nothing. That should prevent DDHelp being started, and should (hopefully) sort out the problem. Don''t forget to use Kill Help or whatever as well to amek sure it''s not running.
--Thomas McCorkell
Just what is Karma? Is it a way to rate people? A way of assigning privilege levels? Or is karma just an anti-spam system?
This piece of randomly insane randomness was brought to you by Thomas
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement