[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: theApp->Exit() causing invalid page fault



As a quick follow up, if I change theApp->Exit() to exit(1) then I don't get
an error. Is this OK or am I going to get memory leaks?

Dan Osborne
Specialist Business Solutions Ltd.

> -----Original Message-----
> From: Dan Osborne [mailto:dano@specialist.co.uk]
> Sent: March 7, 2000 3:01 PM
> To: VGUI Submit
> Subject: theApp->Exit() causing invalid page fault
>
>
> I'm getting annoying errors on calling theApp->Exit() and wonder
> if anyone can put me straight. In a command window I attempt to
> open my database. If an exception is thrown I do this ...
>
>     catch(otl_exception& p)

>       // intercept OTL exceptions
>       vNoticeDialog note(this);
>       note.Notice((char*)p.msg);
>       note.Notice("Failed to open database");
>       theApp->Exit();
>     }
>
> The Exit function just does the default ...
>
> //============================>>> ora2App::Exit
> <<<===========================
>   void ora2App::Exit(void)
>   {
>     // This is called to close all windows.
>
>     UserDebug(Build,"ora2App::Exit()\n");
>
>     vApp::Exit();		// Default behavior
>   }
>
> The error I get is ...
>
> ORA2 caused an invalid page fault in
> module ORA2.EXE at 0137:0044dba7.
> Registers:
> EAX=0258f108 CS=0137 EIP=0044dba7 EFLGS=00010202
> EBX=00459630 SS=013f ESP=0258d840 EBP=0258f158
> ECX=0258f140 DS=013f ESI=0258f608 FS=3a27
> EDX=00000000 ES=013f EDI=00401781 GS=0000
> Bytes at CS:EIP:
> c7 42 08 84 60 45 00 89 d1 83 c1 10 89 4a 4c 89
> Stack dump:
> 0258f4f8 0258f608 00401781 5328203d 3d204449 43524f20 2929294c
> 65722041 72697571 2e206465 204c4c44 656c6966 7325202c 6177202c
> 6f6e2073 6f662074
>
> Normal exits work fine.
>
> Thanks in anticipation,
>
> Dan Osborne
> Specialist Business Solutions Ltd.


Reply to: