B4J Question SQLite references failing in Server Handlers

lip

Active Member
Licensed User
Longtime User
This is an ongoing battle.

I have a Process Global SQL object in Main:
B4X: Copy
Dim IntSQL as SQL


I initialise it once
B4X: Copy
Main.IntSQL.InitializeSQLite(Folder,Filename,True

I use it all over the place and it generally works:
B4X: Copy
Dim RS As ResultSet = Main.IntSQL.ExecQuery("SELECT * FROM TabletParameters")
...
RS.Close

But sometimes, generally in server handlers, the code hangs as soon as it gets to a reference to Main.IntSQL
It works in Debug mode - which I know is single thread - but how do I make it work on Release mode? Can I make the handler single thread?
 
For SQLite working in concurrent access:
 
Upvote 0
Back
Top