[PyQt] Memory Release question

Ville M. Vainio vivainio at gmail.com
Wed Feb 3 20:10:49 GMT 2010


On Wed, Feb 3, 2010 at 7:08 PM, Darryl Wallace
<darryl.wallace at prosensus.ca> wrote:

> If I take the MDI example and start that program, it's using 11,060K of ram.
>  Creating a new document in the MDI (by clicking the "new" button on the
> toolbar brings the ram usage up to 11,376K.  Upon closing the document, ram
> usage went down to 11,372K.  After a minute or so it went down to 11,340K.
>  Why doesn't it go back to closer to 11,060?
> I would guess that when the QTextEdit object was destroyed, that the memory
> it used would be returned.
> Can anyone provide some info?

The application heap is not typically returned to OS directly when
objects are freed. Rather, the freed space will be used by other
objects allocated by the application.

-- 
Ville M. Vainio
http://tinyurl.com/vainio


More information about the PyQt mailing list