It seems like Titanium causes memory leaks, on the iPad at least - can anyone confirm this, or tell me what I'm doing wrong?
I'm using a function spawned by calls to setTimeout to change the backgroundImage of some views. This process seems to often result in the device running out of memory and crashing. I'm not sure whether it's the use of backgroundImage (which seems to consume more memory than setting 'image') or setTimeout or a combination of the two. I'm using clearInterval to clean up the timed events.
If anyone's got any tips as to how I might fix this problem I'd love to hear them!
I have seen a memory leak when using setTimeout. There's a Lighthouse ticket for it, and you can't fix it unless you modify the Objective C in your project (which detaches it from your Titanium project thereafter).
Using DDMS i found that Memory allocated to application is get increases as i am navigating screen by screen and after some time it crash application with force close message/Fail to load resources. Even i have remove all objects from window and after that assign null to it. i.e
Please help Me OUT.