[e-users] Python-elementary - destroy an object

2009-02-24 Thread Leonti Bielski
Hi!
I'm developing an application for Openmoko phone in python-elementary.
It uses a lot of buttons (and I mean a lot - maybe even excessively :) ).
A lot of them I will not need during the flow of my application. How
do I destroy them for good?
I just hide object that I don't need for now with hide() function.
Right now memory losses are just crazy - when I start my app it eats
around 8 mb, but by the end around 40 mb and counting...

Is there any function like destroy() for an object? Or any other
implementation allowing me to get rid of an object to freem the
memory?

Leonti

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] Python-elementary - destroy an object

2009-02-24 Thread Gustavo Sverzut Barbieri
On Tue, Feb 24, 2009 at 5:23 PM, Leonti Bielski prishe...@gmail.com wrote:
 Hi!
 I'm developing an application for Openmoko phone in python-elementary.
 It uses a lot of buttons (and I mean a lot - maybe even excessively :) ).
 A lot of them I will not need during the flow of my application. How
 do I destroy them for good?
 I just hide object that I don't need for now with hide() function.
 Right now memory losses are just crazy - when I start my app it eats
 around 8 mb, but by the end around 40 mb and counting...

 Is there any function like destroy() for an object? Or any other
 implementation allowing me to get rid of an object to freem the
 memory?

I have not looked at python-elementary bindings yet, but I'd say if it
is done correctly you should do as with regular evas objects: call
obj.delete()

Please note that both elementary and its python bindings are in early
stage, so they might have bugs. That is, don trust them and always
debug both parts!

Regards,

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users