Archived

This topic is now archived and is closed to further replies.

samosa

my program Crashes any ideas?

Recommended Posts

hey, im reading a book on directx and windows programming, and when i complied the code for my program(loads two images then switches between them when u press space) when the program starts i see the image for a second, then it closes and returns to windows, i reread the chapter and i cant figure out what the problem is, any ideas? thanks ,Matt -= kill one your a murderer, kill thousands your a conquerer =-

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you are using error checking the image may not be found causing the program to terminate early. Check your paths.

Share this post


Link to post
Share on other sites
You should log everything in a seperate file. I suggest creating a class for this. Once you see your program shutdown, you can simply look at your logfile and see where it happen. From there you should be able to pinpoint the location of the error in your code.

Share this post


Link to post
Share on other sites