MFC Application has encountered a problem and needs to close. HELP
- From: Alan Williams-Key <AlanWilliamsKey@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Nov 2007 09:38:04 -0800
This is driving me nuts.
Whenever I run my program in release configuraiton it always crashes with
the above error message offering me an option to send a message to Microsoft.
I have discovered it is an access violation (code 5).
Whenever I run the program in debug configuration it runs OK.
I have two main questions:
1 How can the program behave so differently in the two configurations? I can
find no explanation of this in the help files.
2 How can I get useful information about the access violation?
I cannot save the crash dump produced which the exception handler offers to
send to Microsoft for me because it is deleted as soon as I click out of the
dialog and my Norton wizard for recovering lost files doesn't look in the
right directory. Is it possible to disable the MFC exception handling so that
I can generate a drwtsn32 crash dump? If I can, will Visual Studio 6.0 read
it?
I have tried analysing the stack dump in the crash file (a laborious process
using the small scroll window in the report viewer) to find addresses from my
program space, but so far this hasn't led to anything.
Ideally I would like to make the debug configuration detect the access
violation so that I can investigate but I cannot find any options that allow
me to force the debug version to behave in the same way as the release
version. Is there such an option (this is obviously related to my main
question No 1).
Alan
.
- Follow-Ups:
- Re: MFC Application has encountered a problem and needs to close. HELP
- From: Joseph M . Newcomer
- Re: MFC Application has encountered a problem and needs to close. HELP
- From: Tom Serface
- Re: MFC Application has encountered a problem and needs to close. HELP
- From: Norbert Unterberg
- Re: MFC Application has encountered a problem and needs to close. HELP
- From: Jim T.
- Re: MFC Application has encountered a problem and needs to close. HELP
- From: David Webber
- Re: MFC Application has encountered a problem and needs to close. HELP
- From: AliR \(VC++ MVP\)
- Re: MFC Application has encountered a problem and needs to close. HELP
- Prev by Date: Re: Multilanguage support for CEdit
- Next by Date: Re: MFC Application has encountered a problem and needs to close. HELP
- Previous by thread: CStringArray
- Next by thread: Re: MFC Application has encountered a problem and needs to close. HELP
- Index(es):
Relevant Pages
|