Advertisement

Debugging

Started by December 07, 2000 07:24 PM
3 comments, last by FrigidHelix 24 years ago
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
Advertisement
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.
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 ***
just looking at my signature

God''s last message to creation:
"Sorry for the inconvinience"
"So long and thanks for all the fish" -Dolphines
God's last message to creation:"Sorry for the inconvinience""So long and thanks for all the fish" -Dolphines

This topic is closed to new replies.

Advertisement