Undefined method 'end_edit_label' in Wx::TreeCtrl

Hi,

Maybe a documentation update.

#<NoMethodError: undefined method ‘end_edit_label’ for
#Wx::TreeCtrl:0xb381da4>

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.

Cheers,
Zhimin

Hi Zhimin

Zhimin Z. 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

Hi Alex,

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

I can’t remember seeing this error (Rect => Event) in previous versions
used (1.9.4 - 1.9.6).

Regards,
Zhimin