[wxruby-users] Different (tree) event behaviors across platforms
Alex Fenton
alex at pressure.to
Wed Apr 16 04:25:16 EDT 2008
Hi Chauk-Mean
Chauk-Mean P wrote:
> 2008/3/13, Alex Fenton <alex at pressure.to>:
>
>> There's a few places I've been surprised by ObjectPreviouslyDeleted
>> errors where events are getting sent to destroyed objects. I wonder if
>> wxRuby should try to explicitly disconnect event handlers on window
>> deletion - but there's nothing in the C++ docs that suggests this.
>>
>
> This is exactly the problem I had. In the code of selection change
> event, I take and put the content of the textctrl (in the right pane)
> based on the selected item. But during the close of the window, the
> textctrl has been already destroyed. So I received this
> ObjectPreviouslyDeleted error.
>
> It would be really great if wxRuby can deal with this issue.
> Indeed, unlike the 2 other issues, this one makes the application crash.
>
I've just committed a patch (SVN:1664) to fix these
ObjectPreviouslyDeleted errors sending events to destroyed Wx::Windows.
It seems to fix the samples; if possible, please test SVN HEAD to see
whether the problem is resolved for you.
thanks
alex
More information about the wxruby-users
mailing list