ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxpython-users
wxpython-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved