Python memory unload function ?
#1
apologies if answered elsewhere - but i couldnt find an answer after a quick scan..

im wondering if there is a general call of function in python on exit of a script to unload all the stuff like backgrouds etc,.. that have been loaded.

in my case - im going from 39mb free mem on startup, to 33mb after running and exiting a script the only major load being a background image being around 350kb... it maybe something ive done in the script, or,

do i have to worry about this ? (ive had 2 crashes since - moving from fs video to osd video while running the info settings to see temps / memory etc...

cheers.. :nuts:
Reply
#2
i already seen a post about that... not really answer i think... i already notice that as well... some scripts were working only if another script was launched and stopped before...
Reply
#3
i think calling del on all global variables should do the trick.
Reply
#4
maybe can we try to create a function that :
- unload all vars (using python globals() function)
- unload itself (of course but can stay in memory if it is light enough)
Reply

Logout Mark Read Team Forum Stats Members Help
Python memory unload function ?0