noreply at rubyforge.org
2007-Sep-29 14:48 UTC
[wxruby-development] [ wxruby-Bugs-14322 ] Multiple warnings, especially @__painting__
Bugs item #14322, was opened at 2007-09-29 10:48 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=14322&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Multiple warnings, especially @__painting__ Initial Comment: Hi, I''m drawing with "paint" outside the normal evt_paint with the following code (just as example) in a subclass of Wx::Panel: paint do |dc| dc.draw_circle( ... ) end With this I get multiple "warning: instance variable @__painting__ not initialized" warnings for each paint call. Because they are displayed on every draw event, developing with ruby -w is very hard. It would be nice if this could be fixed. There are also some other warnings during the startup. But as they are only displayed once they aren''t such a big problem: .../ruby/gems/1.8/gems/wxruby-1.9.1-powerpc-darwin8.3.0/lib/wx/classes/app.rb:10: warning: method redefined; discarding old on_assert_failure .../ruby/gems/1.8/gems/wxruby-1.9.1-powerpc-darwin8.3.0/lib/wx/classes/clientdc.rb:8: warning: method redefined; discarding old initialize .../ruby/gems/1.8/gems/wxruby-1.9.1-powerpc-darwin8.3.0/lib/wx/classes/paintdc.rb:7: warning: method redefined; discarding old initialize .../ruby/gems/1.8/gems/wxruby-1.9.1-powerpc-darwin8.3.0/lib/wx/keyword_ctors.rb:214: warning: instance variable @param_flags not initialized I''m using it on Mac OS X 10.4.10 with ruby 1.8.6 compiled with macports and wxRuby 1.9.1 installed with gems as binary gem. Thanks for your help. Aside this bugs I want to they thank you for your great work. I like wxRuby very much and use it very often. It''s easy and simple to use. Thanks, Simon (simon at ruderich dot com) ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=14322&group_id=35
Reasonably Related Threads
- [990] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxCursor.rbw: Use paint block instead of ClientDC; load icon file safely
- [983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
- eigen()
- Getting AdapterNotSpecified on simple script/generate
- [934] branches/wxruby2/wxwidgets_282: Rename OnAssert to OnAssertFailure, reflecting wx 2.8 API