On 04/24/2015 12:48 PM, Yonggang Luo wrote:
I am currently using executeAsync to do async sqlite operation
in main thread, and running multiple executeAsync  in parallel, and it's 
crashed,
I am not so sure if multiple executeAsync can be executed at the same time.

This is fine. The executeAsync calls aren't run in parallel. Each database connection gets its own async thread. All async operations for that connection are run serially on the async thread.

I'd suggest getting a backtrace from any crash to determine where things are actually going wrong. But especially if you're using an older version of gecko/firefox, if mozStorage is the source of the crashes, you'll want to make sure:
- You're correctly using asyncClose to shutdown the connection.
- You're not trying to invoke things after using asyncClose

Andrew
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to