[msw 2.8.7] Problem saving application settings when system
is shut down
Eric Jensen
ml at j-dev.de
Tue Apr 8 11:21:45 PDT 2008
Hello Vadim,
VZ> 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?
VZ> No, absolutely not. But I don't understand how can the dtor not be called,
VZ> could it be that the output just doesn't end up in the file somehow?
unlikely as i open and close the file for each single line of output.
And the initial reason for this test - that the settings in my
application don't get saved when the system is shut down - supports
that theory.
I'm attaching a diff to the minimal sample in case you want to look
into it.
Is there a way to emulate system shutdown without actually doing it?
If i could debug through the code i might find out myself what's
happening.
Thanks, Eric.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minimal-shutdowntest.diff
Type: application/octet-stream
Size: 4350 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080408/4f380b5c/minimal-shutdowntest.obj
More information about the wx-users
mailing list