search for: gc_never

Displaying 10 results from an estimated 10 matches for "gc_never".

Did you mean: _never
2007 Apr 13
0
[959] branches/wxruby2/wxwidgets_282/swig/wx.i: Ensure GC_NEVER handler at least unlinks objects; update to new API for
...#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[959] branches/wxruby2/wxwidgets_282/swig/wx.i: Ensure GC_NEVER handler at least unlinks objects; update to new API for</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>959</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-1...
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
...x"> %} </span><span class="cx"> </span><span class="cx"> %include "typedefs.i" </span><span class="cx"> %include "typemap.i" </span><del>- -# -# Protect certain classes from the GC -# -%define GC_NEVER(kls) -%feature("freefunc") kls "GcFreefunc"; -%enddef - -# -# This may do something someday -# -%define GC_ALWAYS(klass) -%enddef </del><ins>+%include "memory_management.i" </ins></span></pre></div> <a id="trunkwxruby2swigmem...
2007 Jul 23
11
Memory problem with GridCell*Editor
Alex, I was getting the following 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
2007 May 22
0
[1032] trunk/wxruby2/swig: Preserve Sizers associated with Windows from GC; fix several sample
...s 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. </ins><span class="cx"> %define GC_MANAGE_AS_WINDOW(kls) </span><span class="cx"> GC_NEVER(kls); </span><ins>+ +// Any sizer associated with the frame will be preserved by the default +// function. If subclasse of Wx::Window need to implement their own +// markfuncs (eg controls with ItemData), they probably need to call +// this function in their own mark routine if they may...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
..."../common.i" </span><span class="cx"> </span><del>-%module(directors="1") wxMenuBar -GC_MANAGE_AS_WINDOW(wxMenuBar); </del><ins>+%module(directors="1") wxMenuBar; +// Memory management is handled via the containing Frame +GC_NEVER(wxMenuBar); </ins><span class="cx"> </span><span class="cx"> %ignore wxMenuBar(int n , wxMenu* menus[] , const wxString titles[] ) ; </span><span class="cx"> </span><del>-// MenuBar requires a special mark routine. T...
2007 May 28
0
[1034] trunk/wxruby2/swig/classes/LogTextCtrl.i: Avoid GC crasher when LogTextCtrl is active log target
...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></pre> </div> </div> </body> </html>
2007 Jul 21
0
[1131] trunk/wxruby2/swig/classes/TaskBarIcon.i: TaskBarIcon should never be destroyed by Ruby, else will segfault-on-exit
...an><span class="cx"> %include "../common.i" </span><span class="cx"> </span><span class="cx"> %module(directors="1") wxTaskBarIcon </span><del>-GC_MANAGE_AS_OBJECT(wxTaskBarIcon); </del><ins>+GC_NEVER(wxTaskBarIcon); // Shouldn''t be deleted from within Ruby </ins><span class="cx"> </span><span class="cx"> %{ </span><span class="cx"> #include <wx/taskbar.h> </span></span></pre> </div> </di...
2007 Apr 03
0
[941] branches/wxruby2/wxwidgets_282/swig/classes/App.i: Avoid segfault when exiting with Ruby exception rather than end of main_loop
...t;cx"> %rename(App) wxRubyApp; </span><span class="cx"> </span><ins>+// Prevent the App being destroyed prematurely when Ruby exits down with +// an exception. Otherwise GC destroys the C++ object, which can still +// be needed for final WxWidgets events. +GC_NEVER(wxRubyApp); + </ins><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> %import "include/wxEvtHandler.h" </span><span class="cx"> </span></span></pre> </div> </div&g...
2007 May 07
0
[1017] trunk/wxruby2/Changelog: Update changelog with 0.0.40 changes
...d missing TIMER constants (SL) +- Fix some rakefile warnings (AF) +- Correct documentation for ListBox (AF) +- Misc documentation fixes (SL) +- Fix spelling mistake in dialog sample doc (SL) +- Add correct documentation for XRC#load_*_subclass (SL) +- Add constant for Targa image files (AF) +- Make GC_NEVER unlink objects (AF) +- Use 2.8 API for loading zipped archives (AF) +- 2.8 API : UpdateUIEvent, TreeEvent, Event (AF) +- 2.8 API for GenericDirCtrl, fix TreeItemId mapping (AF) +- 2.8 API : Image, Icon, Grid, Gauge, +- Change over all classes in 2.8 that now use is_ok rather than ok, samples (AF)...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...re automatically destroyed by wxWidgets, +// so they should not be deleted. +// +// TODO - orphaned/unattached sizers are not automatically destroyed - +// so the freefunc should check for this condition and do the delete if +// required to prevent a memory leak. +%define GC_MANAGE_AS_SIZER(kls) +GC_NEVER(kls); +%enddef + </ins><span class="cx"> // All other classes - mainly helper classes (eg Sizer, GridCellxxx) and </span><span class="cx"> // informational classes eg Point, Size, Rect. These are tracked but </span><span class="cx">...