DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2294 Version: 1.3-current > (gdb) backtrace > #0 0x000000000040cdbc in Fl_Text_Buffer::length (this=0x0) at.. Looks like 'this' being zero is the problem. It looks like Fl_Text_Buffer is getting NULLed out when either view window is closed, probably by the Fl::delete_widget(w) call in the close_cb() of editor.cxx. Maybe the code should keep track of new views, and just hide() them, and show() them again if a new view is (re)opened, to avoid deleting the windows. Or, figure out why deleting a window is NULLing out the Fl_Text_Buffer. (Seems odd because textbuf is a global, so it's not clear to me where it's getting free()ed or NULLed out.. it doesn't seem to be in editor.cxx's code) I take it the 'New View' is to demonstrate how one buffer can be viewed and managed by multiple windows, but I don't know if the app was designed with that in mind, or if it was added on later. Someone familiar with the 'New View' functionality should probably take a look at this. Link: http://www.fltk.org/str.php?L2294 Version: 1.3-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
