[wxPython-users] Segmentation Fault on wx.Listbook::DeleteAllPages()

Saketh Bhamidipati saketh.bhamidipati at gmail.com
Sun Aug 13 08:52:11 PDT 2006


On 8/13/06, Felix <felixonta at teleline.es> wrote:
>
> Hi everyone !!!
>
> i'm running python-wxgtk2.6 (2.6.1.2ubuntu2) and always get a Segmentation
> Fault doing wx.Listbook::DeleteAllPages().
>
> Even this small buggy app does!!! (running on python interpreter):
>
> >>> import wx
> >>> app =3D wx.App()
> >>> myListbook =3D wx.Listbook(None)
> >>> myListbook.DeleteAllPages()
> Segmentation Fault
>
> What happens ???
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
> You can't create a Listbook without giving it a parent. When I execute
that code, it crashes before the DeleteAllPages() call. When you say that
"even this small buggy app" crashes, it's because the app neglects several
things that it fails to DeleteAllPages().

Are you sure that you create Listbooks properly? You need to give the
Listbook a parent, such as a wx.Dialog or a wx.Frame, before you can create
the Listbook.

My guess is that you get the segmentation fault because you don't create the
Listbooks properly, then you try to operate on them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200608=
13/42eac564/attachment.htm


More information about the wxpython-users mailing list