From: dmg@... (David Martinez) Date: 2002-04-21T01:11:03+09:00 Subject: Re: Ruby crash when drawing an Icon in FXDCWindow "Lyle Johnson" wrote in message news:... > > an strange behaviour of FXDCWindow::drawIcon is happenning. Ruby > > crashes with a Segmentation fault when trying to draw an icon on a > > FXCanvas using drawIcon, unless the icon was previously drawn as part > > of the interface (ie toolbar). > > Without any more information, I have the feeling that you have constructed a > new FXIcon after the program's running but failed to call create() on that > new icon. Find the line where you construct the icon, e.g. > > myIcon = FXGIFIcon.new(app, ...) > > and add a line immediately after that: > > myIcon.create > > to see if it fixes the problem. For more details, see this question in the > FAQ: > Yes, that works. Thanks. > http://www.fox-toolkit.org/faq.html#ILLEGALICON > > Hope this helps, > > Lyle