noreply at rubyforge.org
2008-Oct-13 12:24 UTC
[wxruby-development] [ wxruby-Bugs-22395 ] NameError if not calling main_loop
Bugs item #22395, was opened at 2008-10-13 16:24 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=22395&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Kirill Likhodedov (edelweard) Assigned to: Nobody (None) Summary: NameError if not calling main_loop Initial Comment: If I write a program, which uses WxRuby, but doesn''t call Wx::App.main_loop, I receive an exception. To reproduce just run a ruby file with just require ''xw'' in it. I know it doesn''t make much sense to run such a program, but still the exception shouldn''t happen. == Result =C:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.8-x86-mswin32-60/lib/wx.rb:50: uninitialized constant Wxruby2::THE_APP (NameError) from test.rb:1 == Environment = Ruby 1.8.6 WXRuby 1.9.8 Windows XP SP-2 ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=22395&group_id=35