Kevin Smith
2004-Aug-15 12:11 UTC
[Wxruby-users] [Fwd: [ wxruby-Bugs-795 ] Segfault using Icon class on gtk 2.4.4]
> Bugs item #795, was opened at 2004-08-02 10:12> You can respond by visiting: > http://rubyforge.org/tracker/?func=detail&atid=218&aid=795&group_id=35 > > Category: Incorrect behavior > Submitted By: David Mitchell (djm181) > Assigned to: Kevin Smith (qualitycode) > Summary: Segfault using Icon class on gtk 2.4.4 > > Initial Comment: > Using gtk 2.4.4 the attached program will segfault, giving > the following > output: > > icon.rb:4: [BUG] Segmentation fault > ruby 1.8.1 (2004-05-02) [i686-linux] Important wxruby initialization happens inside the call to App#main_loop. You cannot perform wxruby functions (such as constructing an icon from a file) outside the app. If you just want to do some non-UI work with an icon, you might be able to define your App#on_init to return false without creating a frame, which should cause it to exit immediately. Kevin