Click to See Complete Forum and Search --> : program runs in debug, not in release


Tom G
May 21st, 1999, 07:57 AM
My program runs fine in debug mode. When running a release build, I get following message:

Unhandled exception in prog.exe (MFC42.DLL):
0xC0000005: Access violation

Can someone tell me what might cause this behavior? I am using VC++ 5.0 Pro w SP3

real name
May 21st, 1999, 08:09 AM
look into debug section of this server
(http://www.codeguru.com/debug/index.shtml)
hope this helps

sally
May 21st, 1999, 08:14 AM
are ALL your message handlers declared with
WPARAM and LPARAM
even if you do not use them they have to be there....

Sally

Sally
May 21st, 1999, 08:14 AM
are ALL your message handlers declared with
WPARAM and LPARAM
even if you do not use them they have to be there....

Sally

Gary Grant
May 21st, 1999, 10:22 AM
With me (almost always), I find I have assigned a value within an ASSERT() macro.
This works under debug but under release the code is not compiled and then I am using an invalid pointer.

Only the great god ISO knows what happens then. ;-)