I am very frustrated with a GPF error occurs only when I am in the debugger of
VC++ 1.0. I can recreate the problem with a application freshly generated with
AppWizard. I am grateful if anyone can shed some light on how to avoid this
problem.
The foloowing sequent of events will lead to the problem:
1. Use AppWizard to generate an MDI app with all the defaults
2. Use class wizard to add and OnSize() function in the view class
generate
3. Compile the app with debug on
4. Set break point at the beginning of OnSize() in the view class
5. Run the program in VC++ debuger: <Go>, {break at OnSize()}, <Go>,
{break at OnSize()}, <Go>, {application is shown}, <Resize the view
window>,
{break at OnSize()}, <Go>, {GPF dialog}
The GPF message is:
"Exception 0x0000000D: General Protection Fault"
If I look into the calling stack, it contains:
TLWONCL!(5) …
TLWONCL!(5) …
TLWONCL!(5) …
USER!(1) …
WNSCLIB!(1) …
USER!(1) …
CWinApp::PumpMessage(…)
CWinApp::Run(…)
WinMain(…)
Thanks!
p.f.