Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

How to open SQLite database with an Exclusive lock?

$
0
0

Hello,

 

with the growing number of people using Dropbox, we are seeing an increase in Runtime errors in our desktop AIR applications when writing to SQLite databases.

Occasionally an SQLError is thrown while writing to the database. This is happening randomly, with thousands of users without a pattern.  After many hours investigating, we've discovered that it's Dropbox fault - every small change to a sqlite database, triggers Dropbox sync mechanism, which locks the sqlite database. If AIR tries to write in the database while Dropbox is synching, an error is thrown.

 

This is a known issue of dropbox: http://superuser.com/questions/591930/dropbox-options-for-avoiding-fil e-conflicts-and-locking-issues , that, I believe, could be avoided if one could lock the SQLlite database with an Exclusive lock.

 

According to AIR documentation, it seems there's no option to open an SQL lite database with an Exclusive lock, which apparently would avoid this nasty issue.

Am I missing something ?


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>