[msw 2.8.7] Problem saving application settings when system is shut down

Vadim Zeitlin vadim at wxwidgets.org
Tue Apr 8 10:40:23 PDT 2008


On Tue, 8 Apr 2008 19:23:29 +0200 Eric Jensen <ml at j-dev.de> wrote:

EJ> However, when the system is shut down, i get this:
EJ> 
EJ> 04/08/08 17:34:45: MyApp::OnAppQueryEndSession
EJ> 04/08/08 17:34:45: MyFrame::OnClose
EJ> 04/08/08 17:34:45: MyApp::OnAppEndSession
EJ> 04/08/08 17:34:45: MyFrame::OnClose
EJ> 
EJ> I receive the EVT_END_SESSION events and the OnClose handler gets
EJ> called, but neither the frame dtor nor wxApp::Exit().
EJ> 
EJ> Event if i explicitly call frame->Destroy() or wxApp()::ExitMainLoop()
EJ> in the EVT_END_SESSION event handler this does not change.
EJ> 
EJ> Is this the "normal" expected behavior?

 No, absolutely not. But I don't understand how can the dtor not be called,
could it be that the output just doesn't end up in the file somehow?

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/



More information about the wx-users mailing list