iOS Question ExecQuery error: out of memory - KVS

ilan

Expert
Licensed User
Longtime User
hi

in my app i am using kvs to store my data. when the app starts i initialize the kvs object now i want to let the user the possibility to perform a restore, what means that i want to delete the create db file and download another db file from a cloud server. the problem is that i cannot delete the db file because the sql connection is active. so i try to close the sql connection but i get an error.


how can i delete the db file after i have initialize it?

thanks, ilan
 

ilan

Expert
Licensed User
Longtime User
you are right erel, i found out that it was a bug in my code. i am checking in a timer if the db contains a key and after deleting the db or closing the sql the app crashes. now i am disabling the timer before deleting the db.

thank you
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…