Re: dialog.domodal causes crash
- From: David Lowndes <DavidL@xxxxxxxxxxxxxxx>
- Date: Fri, 18 Jul 2008 22:52:23 +0100
I have an application that's worked well for two years. Recently I added
some code (a few functions and 2 calls to a dll) and now the program
crashes. Debug build is OK, Release build crashes and displays the MS "MFC
Application has encountered a problem".
I've put MessageBox'es at different points to identify where the crash
happens, and it seems to be at a call to mydialog.DoModal. The MessageBox
that I put in OnInitDialog doesn't display before the crash. This dialog is
not new, it's been there all along.
How would I go about tracking something like this down?
Dave,
You can debug the release build rather than having to put message
boxes in the code - have a look for "Turn on Generation of Debug
Information for the Release Build" in MSDN.
Since you've added new code, it would seem likely that something there
is the problem, so I'd start debugging by putting breakpoints in that
code.
When the crash occurs, have a look at the call stack and try to
identify the source of the problem.
Dave Lowndes
.
- Follow-Ups:
- Re: dialog.domodal causes crash
- From: Dave Cullen
- Re: dialog.domodal causes crash
- References:
- dialog.domodal causes crash
- From: Dave Cullen
- dialog.domodal causes crash
- Prev by Date: Re: calling convention stdcalll and cdecl call
- Next by Date: Re: calling convention stdcalll and cdecl call
- Previous by thread: dialog.domodal causes crash
- Next by thread: Re: dialog.domodal causes crash
- Index(es):
Relevant Pages
|