Tutorial crashing on second run
Anyone else has this problem ? ... a solution ?
When I run a tutorial ( happens with many of them ) a first time, it runs just fine. Second time, it crash saying there is an error in ddhelp. And if running it a third time, the program just shut down without doing anything.
This seems to happen randomly when running different tutorial and the only way to make it run again is by rebooting ( which will make it run only once correctly ). This is getting very annoying.
I tried tracing the program to see where the problems comes from and it dies at the line :
if (!(PixelFormat=ChoosePixelFormat(hDC,&pfd)))
But without returning a value or anything, it dies in the function. Anyone could give me any pointer at what to look at to correct the problem ?
I doesn''t seems to be anything directly related to the tutorial ( well, nothing I could diagnose myself, with my little OpenGL knowledge ).
Thanks in advance.
(By the way, I''m using VC++ 6.0 on windows 98 )
By the way, if anything is not clear, feel free to ask ( english is not my main language ).
I have a problem where any OpenGL code I compile runs fine the first time and then starts crashing with ddhelp errors too!
The only way I''ve found to fix this is, before compiling any code, first run an opengl game, I use quake3, start it, then quit it.
I can then compile as much opengl code as I want without any errors, and you only have to do this once per boot!
Hope this helps
Adam
The only way I''ve found to fix this is, before compiling any code, first run an opengl game, I use quake3, start it, then quit it.
I can then compile as much opengl code as I want without any errors, and you only have to do this once per boot!
Hope this helps
Adam
I reinstalled both my video card drivers and directx and it didn''t solve the problem 
It seems that WoolyUK''s trick is working, it allows me to keep working on my OpenGL programs. Sadly enough, that is not a long term solution, I don''t want to add : "Quake3 required to play this game" on my game''s box.
Thanks for the quick replies and suggestions. I''ll keep looking on my side, if anyone have any ideas on how I could solve this problem, please say so, as it seems I''m not the only one experiencing that type of problem.
Thanks again

It seems that WoolyUK''s trick is working, it allows me to keep working on my OpenGL programs. Sadly enough, that is not a long term solution, I don''t want to add : "Quake3 required to play this game" on my game''s box.
Thanks for the quick replies and suggestions. I''ll keep looking on my side, if anyone have any ideas on how I could solve this problem, please say so, as it seems I''m not the only one experiencing that type of problem.
Thanks again
All my code runs first time on other peoples computers - its just mine that it doesnt!
So youre code will run fine on other peoples too, I think we just have a glitch somewhere in our systems
Adam
So youre code will run fine on other peoples too, I think we just have a glitch somewhere in our systems

Adam
This is a bug in DirectX.
I''ve read that you could simply play some video file in windows media player instead of loading a game.
Source
I''ve read that you could simply play some video file in windows media player instead of loading a game.
Source
November 30, 2002 06:53 PM
DirectX 8.1 C++ help file:
Introducing DirectX 8.1 -> DirectX Tools -> Kill Help Utility
Introducing DirectX 8.1 -> DirectX Tools -> Kill Help Utility
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement