views:

67

answers:

1

Like the title says.

I find a lot of the issues I have are related to the lack of thread safety in the Sqlite wrapper needed for using Sqlite with Monotouch - so - the question is - is there an alternative? There must be something!!?

w://

+1  A: 

Sqlite itself is not thread safe, so you need to manually take a lock whenever you are going to access the database. You can see how I did this with TweetStation:

http://github.com/migueldeicaza/TweetStation/

This allows me to update the database in the background.

There are a couple of bindings to Sqlite: sqlite-net which is a tiny Sqlite binding or Mono.Data.Sqlite.

As for CoreData, it would have the same problems, you do not get thread safety for free, you need to follow their rules as well.

miguel.de.icaza
using the excellent sqlite-net lib now :)
cvista