Joel VanderWerf wrote:
>
> I'm trying to debug a fxerror message that my ruby program generates.
> The message is "FXDCWindow::drawIcon: illegal icon specified." The
> icon works fine in other contexts, so I'm suspecting FXRuby.
Are you sure that you've called create() on the icon before using it?
> I'd like to be able to step into the routines that generate the
> message, to see what the problem is, but I'm not able to 'list' from
> gdb, even after selecting the correct frame. The listing just shows
> the main() of ruby.
I guess the obvious question is, did you compile FOX & FXRuby with
debugging info (-g)? Also, I can't remember if the extconf.rb or
install.rb scripts try to strip the shared object file of its symbols
before they install it; you might need to check for that.
> The 'sharedlibrary fox' command tells me that symbols for fox.so have
> already been loaded.
OK.
> Any suggestions?
Not right offhand. As I noted earlier, if you're sure the icon file
itself is OK, I'd double check to see if it has been create-ed yet. That
is pretty much always the source of the error message you're describing...
|