Ken McIvor wrote:
> On Jul 5, 2007, at 2:13 PM, Michael Droettboom wrote:
>>
>> Interesting.  I don't get that, but I do get some random segfaults (I
>> got lucky the first time I tested).
> 
> It looks like wxPython doesn't retain a reference to the wxApp PyObj for 
> you:
> 
>     [EMAIL PROTECTED]:~/Projects/matplotlib-svn$ pythonw
>     Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
>     [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
>     Type "help", "copyright", "credits" or "license" for more information.
>     >>> import wx
>     >>> app = wx.PySimpleApp()
>     >>> del app
>     >>> wx.GetApp()
>     Segmentation fault

This qualifies as a wx bug, doesn't it?  If wx doesn't retain the 
reference, then instead of a segfault shouldn't it raise an exception?

Eric

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to