> > Pending issues:
> > - white footprint behind Fl_Native_file_Chooser wwindow in Ian's app
>
> I have been testing this with a debug build (both fltk and my own
> code compiled with -g) and the behaviour is slightly different now:
>
> - If I open a FNFC (Fl_Native_File_Chooser) then close it without
> interacting with it in any other way, then I sometimes get the "white
> rectangle" sometimes not.
>
> - Whether I get the "white rectangle" or not, the app becomes
> unresponsive.
>
> - All the menu options in the Sys_Menu_Bar are greyed out.
>
> - If I do interact with the FNFC (e.g. try to type in a file name) I
> get a segfault like this:
>
> 2009-12-11 18:02:48.791 dnd-edit[8498] *** -[NSCarbonWindow
> getFl_Window]: selector not recognized [self = 0x13be280]
> 2009-12-11 18:02:48.791 dnd-edit[8498] An uncaught exception was raised
> 2009-12-11 18:02:48.792 dnd-edit[8498] *** -[NSCarbonWindow
> getFl_Window]: selector not recognized [self = 0x13be280]
> 2009-12-11 18:02:48.792 dnd-edit[8498] *** Uncaught exception:
> <NSInvalidArgumentException> *** -[NSCarbonWindow getFl_Window]:
> selector not recognized [self = 0x13be280]
>
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x92c11490 in _NSRaiseError ()
> (gdb) bt
> #0 0x92c11490 in _NSRaiseError ()
> #1 0x92c111cc in +[NSException raise:format:] ()
> #2 0x92bea290 in -[NSObject(NSForwardInvocation) forward::] ()
> #3 0x90a460b0 in _objc_msgForward ()
> #4 0x0003c1f0 in carbonTextHandler (nextHandler=0xbfffde90,
> event=0x13b3100, unused=0x0) at Fl_cocoa.mm:980
> #5 0x932bb934 in DispatchEventToHandlers ()
etc...
> #31 0x931f6a14 in __NavDialog::Run ()
> #32 0x931f6948 in NavDialogRun ()
> #33 0x00031ec8 in Fl_Native_File_Chooser::post (this=0x1839e00) at ./
> native_file_chooser/src/Fl_Native_File_Chooser_MAC.cxx:595
> #34 0x000321d8 in Fl_Native_File_Chooser::show (this=0x1839e00) at ./
> native_file_chooser/src/Fl_Native_File_Chooser_MAC.cxx:511
> #35 0x00029d7c in pdf_render () at page-preview.cxx:77
>
> (etc...)
This stack dump you gave me shows that when you are in the FNFC,
keyboard events get sent to carbonTextHandler, a function of
Fl_cocoa.mm, and this is bad because FLTK does not
know the FNFC window.
So, could you, please, try and comment out line
InstallEventHandler(GetEventDispatcherTarget(), textHandler, 1, textEvents,
NULL, 0L);
of file Fl_cocoa.mm (= the last of fl_open_display) and tell me what
happens.
This will preclude character palette input, but I would like
to know what happens then for FNFC.
Thanks
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev