I assume here that you are writing an app in VC++. If the problem is that the code runs in Debug mode, but crashes in Release mode, the usual reason is a pointer overflow bug. This is commonly when a pointer is not initialized or a buffer is too small for the data written to it.
In Debug mode all variables are surrounded by guard bytes (allowing the app to run...), but these are removed in Release mode. The guard bytes are the main reason that Debug builds are about 2x the size of a Release build.
Set Debug mode, and hit F5 to run the app. It will probably stop at the source of the error. If not, then you'll need to put in some MessageBoxes in various places to locate the code region that has the bug.
sd
www.pixcl.com
×