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.
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:
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?