Error during MSVC++ 6 Debug Mode
-
Can anybody help me with this error? During debug mode I have receive this error message: MSVCRT.DLL: Access Violation. But if i Run my application on Release Mode. No error occured. Your help is appreciated.
-
Can anybody help me with this error? During debug mode I have receive this error message: MSVCRT.DLL: Access Violation. But if i Run my application on Release Mode. No error occured. Your help is appreciated.
The best approach is always to use the debugger. Run your program under the debugger (Build, Start Debug, Go). Do whatever you did to make the error occur. You'll get a dialog box reporting a 'First chance exception in MSVCRT.DLL (code 0xc0000005)'. Note the position of the instruction pointer. Look at the call stack window to see which part of your program called into the C runtime. You probably passed a NULL or invalid pointer into the C runtime somewhere. Most commonly this is due to an uninitialised variable: the debug version of the C runtime will initialise the stack to 0xCCCCCCCC, while the release version does not do this. The reason for doing this in debug mode is specifically to catch uses of bad pointers.
Stability. What an interesting concept. -- Chris Maunder