search for: swig_ruby_track

Displaying 5 results from an estimated 5 matches for "swig_ruby_track".

2007 Dec 27
4
build problems, part III, and runtime problems, part I
...he following: % ruby -rubygems nothing.rb /home/rwa/linux-packages/ruby-1.8.6/lib/ruby/site_ruby/1.8/i686-linux/wxruby2.so: [BUG] Segmentation fault the crash is in rb_hash_aref. I saw that I was not the only one to run into this from recent mailing list discussion. The issue appears to be that swig_ruby_trackings has a bogus value. In my case it always happens to be 4. It appears it is supposed to point to valid storage. The relevant function appears to be this one: SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) where swig_ruby_trackings is looked up, and if it comes back nil, a new one is cre...
2007 May 22
0
[1028] trunk/wxruby2/swig/classes/App.i: Fix some GC-mark crashes when SWIG trackings return an unexpected object
...n><span class="cx"> </span><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// To do the marking, iterate over SWIG''s hash list of known wrapped +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// objects (swig_ruby_trackings) and check each one. </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_iterate(rb_each, swig_ruby_trackings, (VALUE(*)(...))mark_iterate, Qnil); </span><ins>+ </ins><span class="cx"> #ifdef...
2007 Jul 21
0
[1136] trunk/wxruby2/swig/classes/App.i: Note when the Wx::App is exiting and avoid doing GC if in process of
..."cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// To do the marking, iterate over SWIG''s hash list of known wrapped </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// objects (swig_ruby_trackings) and check each one. </span><span class="lines">@@ -177,6 +175,9 @@ </span><span class="cx"> #ifdef __WXDEBUG__&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp </span><span class="cx"> printf(&quot...
2007 May 21
0
[1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
...bsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp } + +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_iterate(rb_each, swig_ruby_trackings, (VALUE(*)(...))mark_iterate, Qnil); +#ifdef __WXDEBUG__ + printf("=== App GC mark phase completed\n"); +#endif + + } + </ins><span class="cx"> // This is the method run when main_loop is called in Ruby </span><span class="cx"> /...
2006 Apr 18
12
Update on SWIG
SWIG 1.3.29 isn''t going to cut it for us. We''ll have to wait until 1.3.30, unless I can hack together a nasty workaround for a problem with the object tracking. It seem that each SWIG module gets its own hash for tracking objects. This means that, for example, you create a find dialog (in FindReplaceDialog.cpp) events you get from it (from FindDialogEvent.cpp)