Debugging
Whenever I try to run my application from the debugger (VisualC++6.0), it freezes. When i run the application normally, it works alright, but when i press F5 for the debugger, it just crashes.
The application is a full screen DirectDraw application, running in exculsive mode. It used to run from the debugger before without crashing. Do I have some rotten code, or is this to be expected?
If you read the DirectX documentation carefully, you''ll find that you cannot debug full-screen DirectX applications without a second monitor. Sorry. They recommend you debug in Windowed mode...
Dave
Dave
I found what crashes my game. It is the following lines of code:
fp = fopen( file->szPath, "r");
.....
.....
.....
fclose( fp );
Is it normal that the standard library I/O functions should cause a crash? If i dont open the file, then everything works ok. Yet, I can open the file, and read its contents ok when not debugging, so I am certain that the path passed to fopen is correct.
fp = fopen( file->szPath, "r");
.....
.....
.....
fclose( fp );
Is it normal that the standard library I/O functions should cause a crash? If i dont open the file, then everything works ok. Yet, I can open the file, and read its contents ok when not debugging, so I am certain that the path passed to fopen is correct.
If there is a memory leak or something similair then that could cause the standard functions to crash. Imagine if some of the memory for the file was overwritten by something else. It would seem like the file crashed, but it wasn''t it''s fault.
*** Triality ***
*** Triality ***
*** Triality ***
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement