[Wxruby-development] Fix for crash at exit

Artur Kuptel
Sat, 17 Mar 2007 21:57:49 -0000

Hi
This is a very small patch that seems to solve that "Exit the app and
get a segfault in return" problem.
Another thing: bigdemo.rb:395 does
        item = event.get_item()
        if item.is_ok
but get_item typemaps TreeItemId into a plain integer, so it doesn''t
have is_ok method anymore, is there
any wxruby2''yish solution to this kind of problem ?

A.K.

In case attachment gets scrubbed somewhere along the way:

Index: fixdeleting.rb
==================================================================---
fixdeleting.rb    (revision 889)
+++ fixdeleting.rb    (working copy)
@@ -21,6 +21,7 @@

     if(core_name == "App")
         found_app_constructor = false
+        wx_name = core_name
     else
         found_app_constructor = true
     end
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wx2.patch