Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

how to deal with alloy memory leaks

$
0
0

hi, iam working on alloy project (IOS,android) , and i go this window

<Alloy>
    <Window id="mainWW" onClose="clearMemory">
        <Require src="topbar" id="topBar" />
        <ScrollView id="windowContainer">
        <WebView id="productDesc" />
        </ScrollView>
    </Window>
</Alloy>
function clearMemory(){
 
 $.windowContainer.removeAllChildren();
 $.mainWW.remove($.windowContainer);
 
$.windowContainer = null;
$.topBar = null;
$.productDesc = null;
 
}

when i open the instrument and open the window then closing , the objects still in ram living never gets low

what i should to do for

1) how to remove <Require src="topbar" id="topBar" /> from the window and null it

2) how to null the rest objects (windowContainer,productDesc) and set it to null too ?


Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>