Displaying 20 results from an estimated 600 matches similar to: "memory leaks"
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 Jun 25
0
[1070] trunk/wxruby2/swig/fixdeleting.rb: Remove old, now unused, fixdeleting script
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 May 07
0
[1017] trunk/wxruby2/Changelog: Update changelog with 0.0.40 changes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
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.
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 it compares to last week.
I probably won''t have much time
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
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)
Patches item #9297, was opened at 2007-03-15 00:46
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=220&aid=9297&group_id=35
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Patch to compile wxruby 0.0.39 on windows (vc2003,swig 1.3.31,wxwidgets 2.8.0)
Initial Comment:
2006 Oct 15
2
[Fwd: [ wxruby-Bugs-6144 ] error: cast from ‘void*’ to ‘int’ loses precision]
I think we can mark this bug closed and check in the patch. Anyone have
any concerns/questions before I do?
Roy
-------- Original Message --------
Subject: [ wxruby-Bugs-6144 ] error: cast from ?void*? to ?int? loses
precision
Date: Sun, 15 Oct 2006 08:37:31 -0400 (EDT)
From: <noreply at rubyforge.org>
To: noreply at rubyforge.org
Bugs item #6144, was opened at 2006-10-15 00:04
2007 Mar 18
0
[890] branches/wxruby2/wxwidgets_282/swig/fixdeleting.rb: Fix crash on exit (Artur Kuptel)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 May 21
0
[1021] trunk/wxruby2/rake/rakewx.rb: Memory mgmt: don''t run fixdeleting anymore
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 Mar 17
0
[887] branches/wxruby2/wxwidgets_282/swig/fixdeleting.rb: Deleting fix for specific Director classes (Artur Kuptel)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
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 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 Mar 17
5
Fix for crash at exit
Hi
This is a very small patch that seems to solve that "Exit the app and
get a segfault in return" problem.
Another thing: bigdemo.rb:395 does
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
2007 May 21
13
First drop of new memory management
Hi
Just a 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
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 Sep 03
0
Good news on the crashing problem
Tonight, I started to look into why wxruby2 crashes so much. I found
that 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
2006 Oct 23
0
[710] trunk/wxruby2/swig/common.i: Added extern keyword to Gc functions and moved common header includes to %runtime
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
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.
2007 Jun 26
0
[1085] trunk/wxruby2/swig: Add checks and ruby exceptions for two common Wx::Window mistakes leading to
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: