[wxruby-users] wxruby 1.9.9 menu - strange corruption

Ridge Mcghee lists at ruby-forum.com
Fri Jan 2 12:39:19 EST 2009


Environment:
Windows XP Pro + SP3
ruby (1.8.6)
wxruby (1.9.9)

Please see attached code (smallest code to reproduce).
I'd like to know if others can reproduce this problem.
I completely removed and then re-installed ruby and wxruby
and was able to reproduce.

I'm subclassing menus to add an extra tag.
However, after some repeated menu use, the menu
item becomes corrupted.  The more menu items
there are, the more quickly the menu item becomes
corrupted.

It appears (speculation) that a garbage collector
or some memory reclamation code is at work that
reallocates the MyMenuItem and transforms it into
a MenuItem.

Anybody able to reproduce?

Attachments:
http://www.ruby-forum.com/attachment/3119/test.rb

-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list