This is an ongoing battle.
I have a Process Global SQL object in Main:
I initialise it once
I use it all over the place and it generally works:
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?
I have a Process Global SQL object in Main:
B4X:
Dim IntSQL as SQL
I initialise it once
B4X:
Main.IntSQL.InitializeSQLite(Folder,Filename,True
I use it all over the place and it generally works:
B4X:
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?