search for: gc_manag

Displaying 6 results from an estimated 6 matches for "gc_manag".

Did you mean: gc_manage
2007 Jun 23
0
[1062] trunk/wxruby2/swig/classes: Remove directors from some common classes where they are unnecessary
..."cx"> </span><span class="cx"> %include "../common.i" </span><span class="cx"> </span><del>-%module(directors="1") wxPoint </del><ins>+%module wxPoint </ins><span class="cx"> GC_MANAGE(wxPoint); </span><span class="cx"> </span><span class="cx"> %include "include/wxPoint.h" </span></span></pre></div> <a id="trunkwxruby2swigclassesRecti"></a> <div class="modfile">&l...
2007 Jul 23
11
Memory problem with GridCell*Editor
...llowing crashes when editing cells in a grid: ./init.rb:1072:in `main_loop'': undefined method `begin_edit'' for "_p_wxEvent":String (NoMethodError) from ./init.rb:1072 but only after the first App GC mark phase. So I changed all the GridCell*Editor.i files from GC_MANAGE to GC_MANAGE_AS_EVENT. Which stopped the crashing. My question Alex is do you think this is the correct GC_* to use in this situation? I wanted to run this by you before I do a commit, since I have not messed around with memory management since the big overhaul. thanks Sean
2007 May 28
0
[1034] trunk/wxruby2/swig/classes/LogTextCtrl.i: Avoid GC crasher when LogTextCtrl is active log target
...lt;span class="lines">@@ -3,8 +3,8 @@ </span><span class="cx"> </span><span class="cx"> %include "../common.i" </span><span class="cx"> </span><del>-%module(directors="1") wxLogTextCtrl -GC_MANAGE(wxLogTextCtrl); </del><ins>+%module wxLogTextCtrl +GC_NEVER(wxLogTextCtrl); </ins><span class="cx"> </span><span class="cx"> %import "include/wxLog.h" </span><span class="cx"> </span></span></p...
2007 Jun 28
0
[1097] trunk/wxruby2/swig/classes/ClassInfo.i: Remove wxClassInfo class because it doesn''t seem at all useful in Ruby
...nbsp2007-06-28 23:53:47 UTC (rev 1097) </span><span class="lines">@@ -1,18 +0,0 @@ </span><del>-// Copyright 2004-2007 by Kevin Smith -// released under the MIT-like wxRuby license - -%include "../common.i" - -%module(directors="1") wxClassInfo -GC_MANAGE(wxClassInfo); - -%feature("nodirector") wxClassInfo; - -%ignore wxClassInfo::wxClassInfo; - -# deprecated: -%ignore wxClassInfo::InitializeClasses; - - - -%include "include/wxClassInfo.h" </del></span></pre> </div> </div> </body> </html&g...
2007 Jul 21
0
[1130] trunk/wxruby2/swig/classes/Caret.i: Make Caret managed as object, so it is cleaned up properly when not
...:21:33 UTC (rev 1130) </span><span class="lines">@@ -8,15 +8,15 @@ </span><span class="cx"> %} </span><span class="cx"> </span><span class="cx"> %module(directors="1") wxCaret </span><del>-GC_MANAGE(wxCaret); -%ignore wxCaret::wxCaret() ; -%ignore wxCaret::wxCaret(wxWindow* window , int width , int height ) ; </del><ins>+GC_MANAGE_AS_OBJECT(wxCaret); </ins><span class="cx"> </span><ins>+%ignore wxCaret::wxCaret() ; +%ignore wxCaret::wxCaret(...
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
...(kls) +%trackobjects; +%feature("freefunc") kls "GcNullFreeFunc"; +%enddef + +// Strategy for windows that aren''t top-level windows. +// Here, the C++ objects are destroyed automatically by WxWidgets when the +// frame that contains them is closed and destroyed +%define GC_MANAGE_AS_WINDOW(kls) +GC_NEVER(kls); +%enddef + +// Strategy for top-level frames - these are destroyed automatically. +%define GC_MANAGE_AS_FRAME(kls) +GC_NEVER(kls); +%enddef + +// Strategy for dialogs - these are destroyed automatically +%define GC_MANAGE_AS_DIALOG(kls) +GC_NEVER(kls); +%enddef + +//...