micha wrote:
> I tried to do that and changed the test/input.cxx file to swap the
> TextBuffer of the TextEditor widget with every button press.
> If you don't enter text but just press the button the program segfault
> after some clicks.
> If you enter text, then change the buffer, than enter text into the new
> buffer the program at once segfaults. Is this a known bug?
> 
> I get this messages when just changing the buffer without entering text;
> 
> --------------------------------------------------------------------------------------------
> TextBuffer::remove_modify_callback(): Can't find modify CB to remove
> TextBuffer::remove_predelete_callback(): Can't find pre-delete CB to
> remove
> segfault
> ------------------------------------------------------------------------------------------------------

This looks somehow similar to some things I found in FLTK 1.1 in
Fl_Text_Display, concerning wrap mode and line counting.

I don't know, however how (much) this applies to FLTK 2.0.

You can find the patch(es) in two STRs, including the svn
version of the fix. Maybe this can help, see:

http://www.fltk.org/str.php?L1227

http://www.fltk.org/str.php?L1655

Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to