i don't think its return types on a main, that won't crash VC, technically only int is a valid return type, but VC allows void happily, neither will not releasing memory. releasing memory twice might cause a crash, or releasing the wrong block of memory.
I'm betting its stack corruption, if its crashing at the end of main and its not in a destructor, the stack has probably been upset.
What does the debugger say ?, it should stop you exactly at the point it crashes with hopefully a useable stack trace, if you don't know how to debug, run it in the debugger, switch on the call stack, registers etc and take a readable screen shot and post it
Are you using local variables of a fixed size to read data into ?
I'll also be happy to help you if needed, perhaps zip up your project and post it somewhere if you can
Last edited by charliex; 12-15-2003 at 12:35 PM..
|