Click here to Skip to main content
15,882,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Puzzling Runtime Error Pin
Steve Mayfield16-Feb-05 14:52
Steve Mayfield16-Feb-05 14:52 
GeneralRe: Puzzling Runtime Error Pin
LighthouseJ16-Feb-05 15:04
LighthouseJ16-Feb-05 15:04 
GeneralRe: Puzzling Runtime Error Pin
Bob Ciora17-Feb-05 0:56
Bob Ciora17-Feb-05 0:56 
GeneralRe: Puzzling Runtime Error Pin
LighthouseJ17-Feb-05 4:01
LighthouseJ17-Feb-05 4:01 
GeneralRe: Puzzling Runtime Error Pin
Bob Ciora17-Feb-05 6:14
Bob Ciora17-Feb-05 6:14 
GeneralRe: Puzzling Runtime Error Pin
Bob Ciora17-Feb-05 6:29
Bob Ciora17-Feb-05 6:29 
GeneralRe: Puzzling Runtime Error Pin
LighthouseJ17-Feb-05 8:34
LighthouseJ17-Feb-05 8:34 
GeneralRe: Puzzling Runtime Error Pin
Bob Ciora18-Feb-05 2:35
Bob Ciora18-Feb-05 2:35 
Did you write your own OnAppExit, adding the "exit(0)" or was that in the base class? When you use AppWizard to build the program, you don't have to worry about overriding methods like OnAppExit, unless you really really need to. The base class implementation will do just fine. You don't need to add an explicit exit() call, since this will be taken care of automatically.

As far as looking at the this pointer, I was suggesting looking at the pointer in the Watch window. Once you've hit your breakpoint in the code, you can open the Watch window by selecting View->Debug Windows->Watch from the main menu. Add this to the list of watched variables, and it'll show up like a tree where you can expand and look at the member variables.

It's entirely possible that "this" or something within "this" has been destroyed while the pointer itself remains "valid." Within your block of code that dumps command info to the debug file, you may consider breaking there and just examining what's inside "this." If you see anything that looks "off kilter," that may suggest the problem.

You can always add some assertions within your debug block as well. Check things like ASSERT(GetSafeHwnd()) and do the same for the Frame's main View. At some point, the window handles may have been released without your knowledge.


Bob Ciora
GeneralRe: Puzzling Runtime Error Pin
LighthouseJ18-Feb-05 5:08
LighthouseJ18-Feb-05 5:08 
GeneralRe: Puzzling Runtime Error Pin
Ryan Binns16-Feb-05 17:45
Ryan Binns16-Feb-05 17:45 
GeneralRe: Puzzling Runtime Error Pin
LighthouseJ16-Feb-05 18:34
LighthouseJ16-Feb-05 18:34 
Questionhow to plot graph? Pin
gaurangjanodia16-Feb-05 8:17
gaurangjanodia16-Feb-05 8:17 
AnswerRe: how to plot graph? Pin
rocky_pulley16-Feb-05 8:22
rocky_pulley16-Feb-05 8:22 
AnswerRe: how to plot graph? Pin
Andrew Walker16-Feb-05 11:56
Andrew Walker16-Feb-05 11:56 
Questionsave options using registry or file? Pin
Mohammad Tarik16-Feb-05 8:17
Mohammad Tarik16-Feb-05 8:17 
AnswerRe: save options using registry or file? Pin
rocky_pulley16-Feb-05 8:26
rocky_pulley16-Feb-05 8:26 
AnswerRe: save options using registry or file? Pin
Ravi Bhavnani16-Feb-05 9:23
professionalRavi Bhavnani16-Feb-05 9:23 
AnswerRe: save options using registry or file? Pin
Mohammad Tarik16-Feb-05 9:49
Mohammad Tarik16-Feb-05 9:49 
AnswerRe: save options using registry or file? Pin
ThatsAlok16-Feb-05 18:00
ThatsAlok16-Feb-05 18:00 
GeneralBinary serial communications Pin
ed7115516-Feb-05 8:09
ed7115516-Feb-05 8:09 
GeneralRe: Binary serial communications Pin
Ravi Bhavnani16-Feb-05 8:15
professionalRavi Bhavnani16-Feb-05 8:15 
GeneralINTERNAL COMPILER ERROR Pin
kalaichris16-Feb-05 7:35
kalaichris16-Feb-05 7:35 
GeneralRe: INTERNAL COMPILER ERROR Pin
David Crow16-Feb-05 7:43
David Crow16-Feb-05 7:43 
GeneralRe: INTERNAL COMPILER ERROR Pin
Bob Ciora16-Feb-05 10:34
Bob Ciora16-Feb-05 10:34 
GeneralRe: INTERNAL COMPILER ERROR Pin
Bob Ciora16-Feb-05 10:41
Bob Ciora16-Feb-05 10:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.