CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 1999
    Posts
    11

    program runs in debug, not in release

    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


  2. #2

    Re: program runs in debug, not in release

    look into debug section of this server
    (http://www.codeguru.com/debug/index.shtml)
    hope this helps



  3. #3
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: program runs in debug, not in release

    are ALL your message handlers declared with
    WPARAM and LPARAM
    even if you do not use them they have to be there....

    Sally


  4. #4
    Join Date
    Apr 1999
    Location
    Michigan, USA
    Posts
    115

    Re: program runs in debug, not in release

    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. ;-)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured