Re: Possible memory leak

Bruce Sherwood <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
Here's an even simpler routine that shows memory leakage:

from visual import *
xs = ones(100000, float)
c = curve(x=xs, visible=True)

And here's the important point: Change to visible=False, and there is
no memory leak. That means that the problem is in the rendering of the
curve, which is done about 25 times per second. The leak occurs with
both the default radius (1 pixel) and with a specified radius, which
is particularly interesting because these two cases have large chunks
of different code for rendering.

Also highly interesting is the observation that changing the 100000 to
10 makes no difference in the leak rate.

Bruce Sherwood

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.