search for: fixdeleting

Displaying 20 results from an estimated 22 matches for "fixdeleting".

2007 Jun 25
0
[1070] trunk/wxruby2/swig/fixdeleting.rb: Remove old, now unused, fixdeleting script
...x solid #ccc;margin:10px 0;} #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>[1070] trunk/wxruby2/swig/fixdeleting.rb: Remove old, now unused, fixdeleting script</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1070</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-06-25 19:01:...
2007 Mar 18
0
[890] branches/wxruby2/wxwidgets_282/swig/fixdeleting.rb: Fix crash on exit (Artur Kuptel)
...gin:10px 0;} #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>[890] branches/wxruby2/wxwidgets_282/swig/fixdeleting.rb: Fix crash on exit (Artur Kuptel)</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>890</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-03-17 20:59:04 -0400 (S...
2007 May 21
0
[1021] trunk/wxruby2/rake/rakewx.rb: Memory mgmt: don''t run fixdeleting anymore
...ckground:#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>[1021] trunk/wxruby2/rake/rakewx.rb: Memory mgmt: don''t run fixdeleting anymore</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1021</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-05-21 14:35:15 -0400 (Mon, 21 May 2007)</dd>...
2007 Mar 17
0
[887] branches/wxruby2/wxwidgets_282/swig/fixdeleting.rb: Deleting fix for specific Director classes (Artur Kuptel)
...gin:10px 0;} #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>[887] branches/wxruby2/wxwidgets_282/swig/fixdeleting.rb: Deleting fix for specific Director classes (Artur Kuptel)</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>887</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>200...
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 collec...
2005 Aug 08
4
wxruby2 swig retooling "complete"
I just re-integrated fixdeleting.rb, the last of the post-processors. Running minimal.rb no longer segfaults on exit. Running dialogs.rb and immediately exiting doesn''t segfault, but bringing up a dialog and then exiting does. So there are still memory problems, but fewer than yesterday :-/ I''m not sure how...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...essage</h3> <pre>Wx::Choice fixes for get_client_data (AF)</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2swigclassesChoicei">trunk/wxruby2/swig/classes/Choice.i</a></li> <li><a href="#trunkwxruby2swigfixdeletingrb">trunk/wxruby2/swig/fixdeleting.rb</a></li> </ul> <h3>Added Paths</h3> <ul> <li>trunk/wxruby2/swig/shared/</li> <li><a href="#trunkwxruby2swigsharedcontrol_with_itemsi">trunk/wxruby2/swig/shared/control_with_items.i&lt...
2007 May 01
12
Bitmap memory leaks (Bug 251)?
I see that this problem was noted a while ago (http://rubyforge.org/ tracker/index.php?func=detail&aid=251&group_id=35&atid=218) but it seems not to have received much attention. Any chance that it will be looked at anytime soon? So far, I prefer wxRuby to Ruby/Tk because of that closer coupling with the native window manager. However, the memory leak is just murdering me.
2007 Mar 17
5
Fix for crash at exit
...item = event.get_item() if item.is_ok but get_item typemaps TreeItemId into a plain integer, so it doesn''t have is_ok method anymore, is there any wxruby2''yish solution to this kind of problem ? A.K. In case attachment gets scrubbed somewhere along the way: Index: fixdeleting.rb =================================================================== --- fixdeleting.rb (revision 889) +++ fixdeleting.rb (working copy) @@ -21,6 +21,7 @@ if(core_name == "App") found_app_constructor = false + wx_name = core_name else found_...
2005 Sep 03
0
Good news on the crashing problem
...the minimal, image, and calendar samples can run and exit without crashing. But several other samples, such as caret, would crash upon exit. A quick gdb stacktrace showed that ruby was attempting to free an object that wx had already deleted. We have protection against that (added post-swig by fixdeleting.rb), but it wasn''t working in this case for wxCaret. Turns out that our wxCaret.h didn''t have any virtual methods, so swig wasn''t creating a director class, and fixdeleting only works for classes that have directors. In this case, it turned out the wxCaret docs incorr...
2005 Aug 18
3
wxDebug
For debug builds we define __WXDEBUG__ and WXDEBUG=1. In the swig code we add a check for wxDEBUG to directors. My guess is we mean for one of those defines to be the other. Which one should we change? wxDEBUG-> WXDEBUG or WXDEBUG-> wxDebug? Roy
2005 Aug 14
2
Object map
I''ve spent a couple hours tracking through the code and reading Swig documentation to try to find out about tracking C objects back to Ruby objects. It''s not so easy to do. I took at look at wxPython and their source is a mess! I wasn''t able to glean anything from them on how they do it. My current hypothesis is to trap SWIG_NewPointerObj calls and build a map.
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 21
13
First drop of new memory management
...quick update on memory leaks etc. I''ve just dropped a bunch of patches with a new approach to linking ruby''s GC to Wx''s memory handling. Still some work to do - eg bigdemo.rb falls over quite quickly - but working well for me on other samples. Briefly, it disposes of fixdeleting. For almost all objects that aren''t Windows, they should now be deleted when the ruby object has fallen out of scope and garbage collection is done. This is normal SWIG behaviour. So this should address memory leaks eg with Wx::Bitmap. Windows are a bit different, as they may not be re...
2004 Aug 20
8
wxruby-swig: where does wxclasses-2.4.2.xml comes from?
Was trying to understand more about the internals of wxruby-swig, where does the big chunk of XML comes from? I saw something similiar in Python, is that massaged out of there? The codes produced by extractxml.rb and wxclasses-2.4.2.xml is quite different from the original header files. Just for example the WxDialog class. OnXXX are non-virtual in WxWidgets, but virtual in wxruby-swig
2007 Mar 15
0
[ wxruby-Patches-9297 ] Patch to compile wxruby 0.0.39 on windows (vc2003, swig 1.3.31, wxwidgets 2.8.0)
...Wx2.8 WxChoice.h/wxCombo.h/wxControlWithItems.h/wxFontData.h/wxHtmlCell.h/ App.i/wxControl.h/wxDC.h/wxDirDialog.h/wxDialog.h/Dialog.i/ wxFileDialog.h/wxHtmlContainerCell.h/wxWindow.h/Functions.i/RubyEventTypes.i : removed missing methods, added some new ones,fixed prototypes to conform with Wx2.8 fixdeleting.rb : added processing of specific class directors, moved destruction processing to specific director class''s destructor. It fixed an error caused by calling mark func where it could not find ''@__swig_dead__'' because the pointer passed to it was pointing to specific class...
2006 Sep 20
1
typemap.i.patch
This patch implements a more generic solution to the problem that will work for all our integer types at least. Use this instead of the last version I sent, please. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Oct 30
0
memory mgmt etc
...While the wiki page is useful, it''s important to bear in mind that it predates the release of SWIG 1.3.26, which includes the additional features for marking and tracking. So my first question is: 1) What''s the status of the handcoded memory management (especially in wx.i and fixdeleting.rb)? Will current SWIG do everything we need in terms of linking ruby to c++ objs, and preventing c++ objects being destroyed twice, if %trackobjects is enabled? Is this the route we should go? What''s especially useful on the wiki page is the clear explanation of the kind of situation...
2005 Aug 07
4
Reswigged link error
After reswigging I get link problems: Functions.obj : error LNK2001: unresolved external symbol _mWxruby2 Mac.obj : error LNK2001: unresolved external symbol _mWxruby2 Events.obj : error LNK2001: unresolved external symbol _mWxruby2 ... Which is intriguing since it seems to be defined in wx.cpp
2007 Jun 25
0
[1069] trunk/wxruby2/swig/typemap.i: Fix big memory leak in methods taking wxString as a parameter
...t;>@@ -59,22 +46,17 @@ </span><span class="cx"> } </span><span class="cx"> } </span><span class="cx"> </span><del>-/* -Currently incompatible with the ruby post-processing of swigged .cpp files -Needs to be fixed in fixdeleting.rb before this can be uncommented out -%typemap(freearg) wxString & { -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspdelete $1; -} </del><ins>+// (ruby) String <-> wxString +%typemap(in) wxString& "$1 = new wxString(StringValuePtr($input), wx...