Janus wrote:
> well, gdb gives me the following and i'm not sure where to dig or what
> to look out for :)
One thing to look for is arguments that are NULL,
indicating uninitialized variables.
Another thing to do is look at the args passed to all
the functions, then check them in the debugger to see
if they're legit, ie. compare them to the docs for that
function call.
Here it looks like its deep in the event loop when it breaks,
which is kinda strange. A Mac OSX call is throwing an objective C
exception that is uncaught.
I don't see function call arguments (just empty ()'s)
so make sure you're linking against a /debug/ build of fltk
(configure --enable-debug ) and your app (compile with -g
and don't strip) and try using 'where' and 'up' and 'down'
and 'print' in gdb to poke around in your app's stack. eg:
http://seriss.com/cgi-bin/erco/view-cheat.cgi#GDB
How large is your program.. is it small? Can you post it?
It kinda sounds like there might be a wild pointer in your app,
but it might also be the case your app is triggering a bug in
fltk, hard to say.
In the following its throwing an exception.. you might
check the docs for CFRunLoopRunSpecific() [on the apple website]
to see what exceptions it throws, and try to catch them and
see what the cause is.
> ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___() at 0x92b79a37
> objc_exception_throw() at 0x973f9509
> CFRunLoopRunSpecific() at 0x92a966ec
> CFRunLoopRunInMode() at 0x92a96291
> RunCurrentEventLoopInMode() at 0x9060ce04
> ReceiveNextEventCommon() at 0x9060cbb9
> BlockUntilNextEventMatchingListInMode() at 0x9060ca3e
> _DPSNextEvent() at 0x92de278d
> -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]() at
> 0x92de1fce
> do_queued_events() at Fl_cocoa.mm:657 0xd0911
> fl_wait() at Fl_cocoa.mm:683 0xd0992
> fl_mac_flush_and_wait() at Fl_cocoa.mm:692 0xd0a2f
> Fl::wait() at Fl.cxx:460 0xd72ee
> Fl::run() at Fl.cxx:521 0xd73b5
> main() at main.C:158 0xc5aa8
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk