View Single Post
Old 12-15-2003, 12:31 PM   #9 (permalink)
charliex
Junkie
 
Location: North Hollywood
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..
charliex is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73