Displaying 16 results from an estimated 16 matches for "rb_obj".
Did you mean:
db_obj
2007 May 22
0
[1028] trunk/wxruby2/swig/classes/App.i: Fix some GC-mark crashes when SWIG trackings return an unexpected object
...y = rb_ary_entry(pair, 0);
</span><span class="cx">         val = rb_ary_entry(pair, 1);
</span><span class="cx">         VALUE rb_obj = SWIG_RubyReferenceToObject(val);
</span><del>-        // Check if it''s a descendant of Wx::Window, and if it has not yet been
-        // deleted by...
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
...y = rb_ary_entry(pair, 0);
</span><span class="cx">         val = rb_ary_entry(pair, 1);
</span><span class="cx">         VALUE rb_obj = SWIG_RubyReferenceToObject(val);
</span><del>-
</del><span class="cx">         // Check if it''s a valid object (sometimes SWIG doesn''t return what we''re
</span><sp...
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
...sp  // Would be neater - but can''t do it this way b/c of destruction sequence
+        // SWIG_RubyUnlinkObjects((void *)wx_obj);
+
+        VALUE rb_obj = SWIG_RubyInstanceFor((void *)wx_obj);
+        rb_iv_set(rb_obj, "@__wx_destroyed__", Qtrue);
+        event.Skip();
+ }
+
+
+ static VALUE mark_iterate(VALU...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...p;nbsp                    lines << ''#endif''
</span><ins>+ lines << '' VALUE rb_obj = GcGetValueFromPtr(this);''
+ lines << '' rb_ivar_set(rb_obj, rb_intern("@__swig_dead__"), Qtrue);''
</ins><span class="cx">           &nb...
2007 Jul 20
0
[1125] trunk/wxruby2/swig/shared/control_with_items.i: Avoid MSW crashes when unexpected object is returned by SWIG tracking
...p      VALUE returnVal = (VALUE) ptr->GetClientData(n);
</span><span class="lines">@@ -24,8 +26,12 @@
</span><span class="cx">         VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
</span><span class="cx">         if ( rb_iv_get(rb_obj, "@__wx_destroyed__" ) == Qtrue )
</span><span class="cx">     &a...
2007 May 21
0
[1026] trunk/wxruby2/swig/shared/control_with_items.i: Memory mgmt: USe __wx_destroyed__ instead of __swig_dead__; fix some
...uot;cx"> // Checks whether the C++ object is still around first...
</span><span class="cx"> static void mark_wxControlWithItems(void* ptr) {
</span><span class="cx">         VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
</span><del>-        if ( rb_ivar_get(rb_obj, rb_intern("@__swig_dead__") ) == Qtrue )
</del><ins>+        i...
2007 Jul 21
0
[1133] trunk/wxruby2/swig/shared/control_with_items.i: Move mark func for ControlWithItems into shared file so changes affect
...lt;/span><del>-
- // Prevents Ruby''s GC sweeping up items that are stored as client data
- // Checks whether the C++ object is still around first...
- static void mark_wxControlWithItems(void* ptr) {
-        VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
-        if ( rb_iv_get(rb_obj, "@__wx_destroyed__" ) == Qtrue )
-         return;
-
-     ...
2007 Jul 21
0
[1137] trunk/wxruby2/swig/classes/TreeCtrl.i: Call correct shared function to check whether TreeCtrl is deleted in markfunc
...gt; // SWIG''s entry point function for GC mark
</span><span class="cx"> static void mark_wxTreeCtrl(void *ptr)
</span><span class="cx"> {
</span><del>-        VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
-        if ( rb_iv_get(rb_obj, "@__wx_destroyed__" ) == Qtrue )
</del><ins>+        if ( GC_IsWindowDeleted(ptr) )
<...
2007 Mar 17
0
[889] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Ensure SWIG doesn''t generate wrappers for client data methods (Artur Kuptel)
...t;> %{
</span><span class="cx"> // Returns a ruby object stored as client data
</span><span class="lines">@@ -26,11 +24,15 @@
</span><span class="cx">         VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
</span><span class="cx">         if ( rb_ivar_get(rb_obj, rb_intern("@__swig_dead__") ) == Qtrue )
</span><span class="cx">    &...
2006 Nov 30
0
[765] trunk/wxruby2: Fixed item_data functions for ListCtrl, plus test
...l "mark_wxListCtrl";
+%{
+ // Prevents Ruby''s GC sweeping up items that are stored as item data
+ static void mark_wxListCtrl(void* ptr) {
+ // Checks whether the C++ object is still around first...
+        VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
+        if ( rb_ivar_get(rb_obj, rb_intern("@__swig_dead__") ) == Qtrue )
+         return;
</ins><span class="cx&qu...
2007 Jun 25
0
[1070] trunk/wxruby2/swig/fixdeleting.rb: Remove old, now unused, fixdeleting script
...bsp                       lines << ''#endif''
- lines << '' VALUE rb_obj = GcGetValueFromPtr(this);''
- lines << '' rb_ivar_set(rb_obj, rb_intern("@__swig_dead__"), Qtrue);''
-               &nb...
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...d as client data
+ // Checks whether the C++ object is still around first...
</ins><span class="cx"> static void mark_wxControlWithItems(void* ptr) {
</span><span class="cx">         VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
</span><span class="cx">         if ( rb_ivar_get(rb_obj, rb_intern("@__swig_dead__") ) == Qtrue )
</span></span></pre></div>
<a id="trunkwxru...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...sp  // Would be neater - but can''t do it this way b/c of destruction sequence
-        // SWIG_RubyUnlinkObjects((void *)wx_obj);
-
-        VALUE rb_obj = SWIG_RubyInstanceFor((void *)wx_obj);
-        rb_iv_set(rb_obj, "@__wx_destroyed__", Qtrue);
</del><ins>+        GC_SetWindowDeleted(wx_obj);
<...
2007 Mar 17
0
[887] branches/wxruby2/wxwidgets_282/swig/fixdeleting.rb: Deleting fix for specific Director classes (Artur Kuptel)
...ines << '' printf("'' + this_module + ''" " ~Director %p\n", this);''
</span><span class="lines">@@ -73,25 +79,27 @@
</span><span class="cx"> lines << '' rb_ivar_set(rb_obj, rb_intern("@__swig_dead__"), Qtrue);''
</span><span class="cx">                      &...
2006 Nov 16
0
[741] trunk/wxruby2: Fix get_item_data, hiding TreeItemData messiness, fix GC-ing (Alex Fenton)
...;nbsp          }
+         }
+ }
+
+ static void mark_wxTreeCtrl(void *ptr)
+ {
+        VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
+        if ( rb_ivar_get(rb_obj, rb_intern("@__swig_dead__") ) == Qtrue )
+         return;
+
+   &nbs...
2006 Dec 05
0
[779] trunk/wxruby2: Added TreeCtrl#traverse method and documentation
...9;s entry point function for GC mark
</ins><span class="cx"> static void mark_wxTreeCtrl(void *ptr)
</span><span class="cx"> {
</span><span class="cx">         VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
</span><span class="lines">@@ -86,8 +88,17 @@
</span><span class="cx">
</span><span class="cx">         wxTreeCtrl* tree_ctrl = (wxTreeCtrl...