I have an iphone application. I am using XCode 3.2.3 and iphone SDK4.
Application is supporting multitasking as of every application built in this version of XCode. My application goes into background and become active without any problem. One thing worth nothing here is that I don’t need to store any information which I need when application become active.
Right, here comes the real question. Application works If I don’t drain off memory by playing other applications.
For example if I use my application and then use some game applications and then use my application it gives me memory warning level 1 and sometimes level 2 and crash.
Anyone any idea.
Thanks
According to your comment, it sounds like you might release webData twice. Once during the normal clean-up and then in the clean-up due to low memory.
Ensure that you set the
webDatavariable to nil after releasing it. That way it will be harmless to try to release it a second time. Alternatively you can access it through a property and then allocate it usingself.webData = [NSMutableData data]and release it usingself.webData = nil