[pydocview] Error when closing an SDI application with multiple windows using File->Exit

Klaus Nowikow klaus.nowikow at tuwien.ac.at
Thu Oct 11 05:26:30 PDT 2007


Klaus Nowikow wrote
> Hi!
> 
> I am using wxPython 2.8.4.0 on Linux.
> 
> When I open multiple documents in my pydocview SDI application,
> each with its own view, I get this traceback when closing the app
> by selecting "Exit" from the File menu:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/pydocview.py", line 2372, in OnExit
>     self.Destroy()
>   File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14041, in __getattr__
>     raise PyDeadObjectError(self.attrStr % self._name)
> wx._core.PyDeadObjectError: The C++ part of the DocSDIFrame object has been deleted, attribute
> access no longer allowed.
> [...]

I just checked that the same happens with the pydocview demo:

1) open PyDocViewDemo.py
2) Type something into the window
3) Open a second window by selecting File->New
4) Type something into the new window
5) Select File->Exit from the menu of the /second/ window

==> Traceback

This does not happen if you select File->Exit from the first window.

--
Klaus





More information about the wxpython-users mailing list