search for: gcmapptrtovalue

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

2005 Aug 12
5
Functions that return objects...
I was investigating why the find dialog causes an error when you close it. It seems that wxRuby2 is returning a new ruby object when you call Event.get_dialog. This causes some big problems when you''re expecting you''re going to get back the same ruby pointer that you put in. In a brief check over the source I don''t see anything that preserves the original ruby
2007 May 03
1
memory leaks
Have tracked down a fairly serious cause of memory leakage in wxRuby2. swig/fixdeleting.rb adds a hash mapping from pointer address to ruby VALUE in every director initialiser using GcMapPtrToValue. The problem is that being a value in this global hash means that every Wx::Bitmap (for example, and others) are always marked in ruby''s GC mark phase, so they are never collected until shut down, even if they have fallen out of scope everywhere else. I think the way to go is to dispe...
2006 Oct 21
2
common.i patch
The latest cvs version of SWIG breaks a few things. I have patched common.i to fix most of it. There will be some other things later that should be compatible with all versions. Can someone test to see if this compiles with the old version? Roy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: common.i.patch Url:
2006 Oct 23
0
[710] trunk/wxruby2/swig/common.i: Added extern keyword to Gc functions and moved common header includes to %runtime
...27,11 +27,11 @@ </span><span class="cx"> #include <wx/wx.h> </span><span class="cx"> #include <wx/dcbuffer.h> </span><span class="cx"> </span><del>-void GcMarkDeleted(void *); -bool GcIsDeleted(void *); -void GcMapPtrToValue(void *ptr, VALUE val); -VALUE GcGetValueFromPtr(void *ptr); -void GcFreefunc(void *); </del><ins>+extern void GcMarkDeleted(void *); +extern bool GcIsDeleted(void *); +extern void GcMapPtrToValue(void *ptr, VALUE val); +extern VALUE GcGetValueFromPtr(void *ptr); +extern void GcFreefunc(...
2006 Oct 15
2
[Fwd: [ wxruby-Bugs-6144 ] error: cast from ‘void*’ to ‘int’ loses precision]
...ing -O2 -fPIC -Wno-unused-function -I /usr/local/lib/site_ruby/1.8 -I /usr/local/lib/site_ruby/1.8/x86_64-linux -I /usr/local/lib/site_ruby -I /usr/lib/ruby/1.8 -I /usr/lib/ruby/1.8/x86_64-linux -I . -I /home/bma/wxruby2-preview-0.0.36/doc/lib -o obj/wx.o src/wx.cpp src/wx.cpp: In function ?void GcMapPtrToValue(void*, VALUE)?: src/wx.cpp:1636: error: cast from ?void*? to ?int? loses precision src/wx.cpp: In function ?VALUE GcGetValueFromPtr(void*)?: src/wx.cpp:1646: error: cast from ?void*? to ?int? loses precision rake aborted! Command failed with status (1): [g++ -c -I/usr/lib/wx/include/gtk2-unicod.....
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
...cx"> #error "This version of wxRuby requires WxWidgets 2.8.3 or greater" </span><span class="cx"> #endif </span><span class="cx"> </span><del>-extern void GcMarkDeleted(void *); -extern bool GcIsDeleted(void *); -extern void GcMapPtrToValue(void *ptr, VALUE val); -extern VALUE GcGetValueFromPtr(void *ptr); -extern void GcFreefunc(void *); - </del><span class="cx"> extern VALUE mWxruby2; </span><span class="cx"> %} </span><span class="cx"> </span><span class=&q...
2007 Feb 10
0
[857] trunk/wxruby2/swig/common.i: Add test for suitable version of wxWidgets library
...ON(2,6,3) +#error "wxRuby requires WxWidgets version 2.6.3" +#endif + </ins><span class="cx"> extern void GcMarkDeleted(void *); </span><span class="cx"> extern bool GcIsDeleted(void *); </span><span class="cx"> extern void GcMapPtrToValue(void *ptr, VALUE val); </span></span></pre> </div> </div> </body> </html>
2007 May 05
0
[1014] trunk/wxruby2/swig/common.i: Undo broken commit
...quot;This version of wxRuby requires WxWidgets 2.8.3 or greater" +#endif + </ins><span class="cx"> extern void GcMarkDeleted(void *); </span><span class="cx"> extern bool GcIsDeleted(void *); </span><span class="cx"> extern void GcMapPtrToValue(void *ptr, VALUE val); </span></span></pre> </div> </div> </body> </html>
2007 May 05
0
[1013] trunk/wxruby2/swig/common.i: Run version test at SWIG phase rather than compile phase
...quot;This version of wxRuby requires WxWidgets 2.8.3 or greater" -#endif - </del><span class="cx"> extern void GcMarkDeleted(void *); </span><span class="cx"> extern bool GcIsDeleted(void *); </span><span class="cx"> extern void GcMapPtrToValue(void *ptr, VALUE val); </span></span></pre> </div> </div> </body> </html>
2007 Jun 25
0
[1070] trunk/wxruby2/swig/fixdeleting.rb: Remove old, now unused, fixdeleting script
...bsp&nbsplines << ''#endif'' -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsplines << '' GcMapPtrToValue(this,self);'' -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspline = lines.join("\n") -&nbsp&nbsp&am...