noreply at rubyforge.org
2008-Feb-01 14:07 UTC
[wxruby-development] [ wxruby-Bugs-17697 ] "puts Frame.show" crashes application
Bugs item #17697, was opened at 01-02-2008 09:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=17697&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: "puts Frame.show" crashes application Initial Comment: I know that nobody would use "puts SomeFrame.show". I''m just reporting this bug because it could cause another problem. if a run the program below the app crash with the message "This application has requested the Runtime to terminate it in an unusual way. Please contact the application''s support team for more information." My system: Windows XP SP 2 Ruby 1.8.6 gem 1.0.1 wxruby 1.9.4 Thanks very much. Wxruby rocks! The program: begin require ''wx'' rescue LoadError => no_wx_err begin require ''rubygems'' require ''wx'' rescue LoadError raise no_wx_err end end include Wx class BugExample < Frame def initialize(*args) super panel = Panel.new(self) sizer = BoxSizer.new(Wx::VERTICAL) # comment the line below and the bug goes away sizer.add(StaticText.new(panel, -1, ''Hi, im a weird bug example''), 0, GROW|ALL, 4) panel.set_sizer(sizer) sizer.set_size_hints(panel) sizer.fit(self) end end App.run do f = BugExample.new(nil) puts f.show end ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=17697&group_id=35
Reasonably Related Threads
- [691] trunk/wxruby2/samples/calendar/calendar.rb: Placed controls within a panel so they appear on the correct themed background
- Re: wxRuby: How to add a scrollbar to a Wx::Notebook tab
- Adding sizers to other sizers doesn''t work
- My first wxRuby app doesn't work, please help!
- [903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.