[pydocview] Segmentation fault when opening two SDI views with
the same document
Klaus Nowikow
klaus.nowikow at gmx.at
Tue Oct 2 03:42:45 PDT 2007
Robin Dunn wrote:
> Klaus Nowikow wrote:
>> Klaus Nowikow wrote:
>>> In my application I'd like to be be able to open two or more
>>> views with one document. I had some problems with this, so I
>>> [...]
>>>
>>> I now get two windows, but when I close both of them (not with
>>> File/Exit, but using
>>> the window's Close button, the one that's top right in Windows) I get
>>> a segmentation
>>> fault. Is this the wrong way to open multiple views for a single
>>> document?
>
> I can't duplicate this with 2.8.6.0 but does it make a difference if you
> use docManager.CreateView instead? It looks like that is what is
> intended to be used to add a new view for an existing document.
Hm, I just tried it with 2.8 on Windows and it works, both in my
application and in the pyDocViewDemo.
So, I think I'll try installing wx 2.8 on my Linux box.
Unfortunately, there's still only 2.6 in the Gentoo repository,
so I'll have to install it by hand :-(. Or I'll go looking for
an overlay that contains 2.8.
Haven't tried the docManager.CreateView() path yet because I am
not in the office today, but judging from the source code of
that method I don't think that this would change anything, as
it just searches for a doc template, calls CreateView() on it
and sets the name of the window.
But anyway, thank you for trying to reproduce that problem and
pointing me in this direction.
--
Klaus
More information about the wxpython-users
mailing list