cancel
Showing results for 
Search instead for 
Did you mean: 

local database gets deleted when receive memory warning

Former Member
0 Kudos

When the device receives memory warning, my local database (which stores all the data synchronized from the SUP server) gets deleted, and this causes the app to crash when it trys to get data from the local database then. Where can I find the code that deletes the local database when memory warning is received? Thanks!!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Its a feature of iphone OS. Looks like your app is consuming more memory and CPU which makes the iphone OS to force shutdown the app. Make sure there are no memory leaks(make use of Instruments and debugging tools) , or try using ios5 bundled with xcode4.2 latest, which has ARC (Automatic Reference Counting)

Edited by: kiranpk1988 on Nov 7, 2011 11:37 AM