Re: [wxpython-users] SEG FAULT
by Phillip Watts other posts by this author
May 8 2008 9:35AM messages near this date
Re: [wxpython-users] SEG FAULT
|
Re: [wxpython-users] SEG FAULT
O
> The crash is happening in the destructor of the help controller when the
> other top level windows of the app have already been deleted. You can
> workaround the problem by forcing the help controller to do its cleanup
> before the app's main frame is destroyed. In my sample I just added a
> EVT_CLOSE event handler to the frame that looks like this:
>
> def OnCloseWindow(self, evt):
> del self.help
> evt.Skip()
YES! it turns out I didn't even need to specify a parent. By calling
s.help = piposdoc.doc()
form the controller of my 1st frame, then
def dologout(s,event):
del s.help
s.f.Close(True)
s.f.Destroy()
return
No seg fault And its still modal.
THANK YOU MUCH and much thanks to Andrea for putting up with me.
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Phillip Watts
Robin Dunn
Phillip Watts
Andrea Gavana
Phillip Watts
Andrea Gavana
|