When a SQL Lite connection is opened using openasync, the connection is often getting lost while debugging.
Declare the SQLConnection as Static.
When opening a database connection to SQL Lite using AIR, the connection is often getting disconnected and we have to check for the 'connected' value before executing any DB operations. This often occurs while debugging the application.
The problem can be resolved by declaring the DB connection as 'Public Static var' instead of 'Public var'.
public static var dbConn:SQLConnection = new SQLConnection;
+