Displaying 3 results from an estimated 3 matches for "rb_iv_set".
Did you mean:
rb_iv_get
2006 Jan 05
7
[Fwd: [win32utils-help][6822] Eventlog problem]
Dang, I thought we solved this.
Any ideas?
Dan
PS - I realized after reading this I forgot to bump the version number
for 0.3.3 - I''ve uploaded a new zip file with the correct version number.
-------------- next part --------------
An embedded message was scrubbed...
From: alain Fioretti <noreply at rubyforge.org>
Subject: [win32utils-help][6822] Eventlog problem
Date: Thu, 5
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...= (char *) malloc(3 + class_name.Len() + 1);
+ sprintf(swigtype, "_p_%s", (const char *)(class_name.mb_str()));
+
+ // Wrap the object, tag its swigtype (core Wx type), and track it
+ // Imitates latter part of SWIG_NewPointerObj
+ r_obj = Data_Wrap_Struct(r_class, 0, 0, wx_obj);
+ rb_iv_set(r_obj, "__swigtype__", rb_str_new2(swigtype));
+ SWIG_RubyAddTracking(wx_obj, r_obj);
+
+ free((void *) swigtype);
+ return r_obj;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> %}
</sp...
2007 Mar 09
5
memory leak in index build?
I have a script (below) which attempts to make an index out of all the
man pages on my system. It takes a while, mostly because it runs man
over and over... but anyway, as time goes on the memory usage goes up
and up and never down. Eventually, it runs out of ram and just starts
thrashing up the swap space, pretty much grinding to a halt.
The workaround would seem to be to index documents in