[wxruby-users] undefined method 'end_edit_label' in Wx::TreeCtrl

Alex Fenton alex at pressure.to
Wed Oct 1 01:17:04 EDT 2008


Hi Zhimin

Zhimin Zhan wrote:
> Maybe a documentation update.
>
>  #<NoMethodError: undefined method 'end_edit_label' for
> #<Wx::TreeCtrl:0xb381da4>>
>   
Thanks for the report - this method's missing from our headers. This 
won't be hard to fix. Looking at the wxWidgets code, it seems to be 
differently defined on different platforms, so I will take a closer look 
and try out. Filed here:

http://rubyforge.org/tracker/index.php?func=detail&aid=22251&group_id=35&atid=218
> I raised the following issue (similar) before, sometimes a Wx::Rect
> object sometimes passed as an event. I found more occurrences, still
> quite rare though.
>
> Env: wxRuby 1.9.8 mswin32 on XP.
>   
I'm pretty sure this is a similar memory allocation problem. A C++ 
pointer address is re-used before Ruby's GC has run, and the old ruby 
object linked to that pointer address (the Rect) is being passed to the 
handler, instead of the new one (the Event).

Do you happen to know if this is a new error since 1.9.8?

thanks
alex




More information about the wxruby-users mailing list