01-12-2012 12:05 PM
My app is fairly simple:
After a few sessions of using the app, i get the "Previous instance still active (report to http://go/memoryleaks)" error. I know the GC is being called as i see the spinning clock on exit.
in the application manager on OS7 i can see that the app exceeds 2MB of memory at times.
Can anyone suggest what aspects of my implementation is causing memory to leak still?
Thanks
Khafra
Solved! Go to Solution.
01-21-2012 11:52 AM
I've isolated the offending script ![]()
I was using the API to handle the back key functionality (which worked as intended), somehow even on WW 2.3 SDK it still isnt releasing the back key listener. my code to handle the back key:
function trapForBackKey() {
blackberry.system.event.onHardwareKey(blackberry.
}
function handleBack() {
if ($("#panel1").css("display")=="none")
{
showPanel(document.getElementById('tab1'), 'panel1');
}
else
{
blackberry.app.exit();
}
}
Of course i would prefer to be able to control the back key without getting the error, but for now i'm leaving it out.
Any ideas on how to control the back key and ensure that the listener on the JAVA side gets released?
Khafra