segfaults from textctrl

Hi,
I randomly get the error
    Gtk-ERROR **: file gtktext.c: line 4725 (find_line_params): assertion failed: (lp.end.property)
    aborting...
after selecting text in a wxTextCtrl. I have tried the freeze/thaw rapper recommended
in a previous thread:

def SetStyle(self, *args, **kwdargs):
    self.Freeze()
    wxTextCtrl.SetStyle(self, *args, **kwdargs)
    self.Thaw()

but it doesn't help.

Versions:
wxWindows 2.4.0
Python 2.2.3 (#2, Nov 10 2003, 19:25:40)
[GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2

Thanks,
    Michael

Michael Hohn wrote:

Hi,
I randomly get the error
   Gtk-ERROR **: file gtktext.c: line 4725 (find_line_params): assertion failed: (lp.end.property)
   aborting...
after selecting text in a wxTextCtrl. I have tried the freeze/thaw rapper recommended
in a previous thread:

def SetStyle(self, *args, **kwdargs):
   self.Freeze()
   wxTextCtrl.SetStyle(self, *args, **kwdargs)
   self.Thaw()

but it doesn't help.

Versions:
wxWindows 2.4.0
Python 2.2.3 (#2, Nov 10 2003, 19:25:40)
[GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2

What about with a newer version of wxPython? If you can reliably reproduce it with a current release then I can investigate further.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!