Restarting application
Leslie Newell
lesnewell at fmail.co.uk
Thu May 3 03:56:27 PDT 2007
Another way would be to send an asynchronous event (AddPendingEvent) to
the app object from the main frame's destructor. You can then be sure
the event will only fire after the main frame has been completely
destroyed. Use this event to trigger constructing a new main frame.
Les
chrismc911 at hotmail.com wrote:
>
> All my objects and initialisation are in the main frame, so actually
> this would be like restarting and I really need a restart. I think my
> problem is that the main frame itself is not designed in a way that
> two of them can coexist.
>
> Is there a nice way to do a clean and complete restart? Maybe using
> wxExecute with the async flag?
>
> Regards,
> Chris
>
More information about the wx-users
mailing list