search for: delete_subscriber

Displaying 1 result from an estimated 1 matches for "delete_subscriber".

2005 May 08
1
ruby destructor hooks
...method is called, it gives a "pure virtual method call" error (wxruby 0.6.0). I''ve tried several different things to clean up the subscribers list as controls are destroyed, but without success: WeakRef ObjectSpace.define_finalizer(subscriber) subscriber.evt_close() { | e | delete_subscriber(subscriber) } The last seems to be the most promising, but it doesn''t work for all the control types that can be subscribers - only for frames. Is there something universal to all Wx controls that I could try? cheers alex