May 16th, 2003, 12:19 pm
All sound advice.There are actually rather more programs than you might think that only work when compiled in debug.John's map stuff is fine, thugh low level enough to not be very friendly.You may choose to trace your code with something like, in your main() functionfp=fopen("C:\\tracebug.txt","w");where FP is a globalFILE *fp;In stdafx.h#define TRACEWHERE(line,file) fprintf(fp,"%d %s\n",__LINE__, __FILE__);fflush(fp);You can sprinkle this through your code, and find out the last line before it dies.When you've finished, simply #define TRACEWHERE(line,file)will leave nothing behind when you recompile.That being said, I'd bet money that your stuff dies "before" or "after" main has started or as the program exits.