noreply at rubyforge.org
2006-Nov-21 22:05 UTC
[Wxruby-development] [ wxruby-Bugs-6809 ] Weird SWIG error when constructing statusbar
Bugs item #6809, was opened at 2006-11-21 22:05
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=6809&group_id=35
Category: Incorrect behavior
Group: None
Status: Open
Resolution: None
Priority: 4
Submitted By: Alex Fenton (brokentoy)
Assigned to: Kevin Smith (qualitycode)
Summary: Weird SWIG error when constructing statusbar
Initial Comment:
A SWIG exception is getting thrown when trying to show a frame with a StatusBar
created using StatusBar.new. This is demonstrated by the StatusBar example
within the bigdemo, or the code below.
NB - it can be worked around by using the Wx::Frame#create_status_bar function.
# Simple demo code:
require ''wx''
class CrasherApp < Wx::App
def on_init
Wx::init_all_image_handlers
f = Wx::Frame.new(nil, -1, ''crash_app'')
s = Wx::StatusBar.new(f, -1)
f.set_status_bar(s)
f.show
end
end
CrasherApp.new.main_loop
# The exception is:
tests/statusbarerror.rb:9:in `process_event'': Swig director type
mismatch in output value of type ''bool'' (TypeError)
from tests/statusbarerror.rb:9:in `show''
from tests/statusbarerror.rb:9:in `on_init''
from tests/statusbarerror.rb:13:in `main_loop''
from tests/statusbarerror.rb:13
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=6809&group_id=35
Possibly Parallel Threads
- [1016] trunk/wxruby2/swig/classes/StatusBar.i: Remove directors from StatusBar''s methods as don''t seem to need them, (Bug:6809)
- Seg Fault caused by StatusBar. Am I doing something wrong?
- The flicker of the status bar.
- Statusbar usage
- [ wxruby-Bugs-12233 ] segfault on exit with StatusBar
