Hi all
I am using Starter service for initializing variables/Databases, etc...
For example i am initializing database in this way:
and everything seems to work properly almost always, but sometimes i am facing to strange problems.
After some suspects i put some checks in other services than Sarter Service like this:
and sometimes in file Logger.txt i find that the database is not initilized.
My question is: why the database seems not initialized even if it is initialized in starter service?
Could be there something wrong that de-initilizes the database?
I am using Starter service for initializing variables/Databases, etc...
For example i am initializing database in this way:
B4X:
Database.Initialize(File.DirDefaultExternal, "settings.db", True)
and everything seems to work properly almost always, but sometimes i am facing to strange problems.
After some suspects i put some checks in other services than Sarter Service like this:
B4X:
If (Starter.Database.IsInitialized == True) Then
.....<My codes here>.....
Else
logger.Initialize(File.OpenOutput(File.DirDefaultExternal, "Logger.txt", True))
logger.WriteLine("Database not initialized?!?!?!")
logger.Close
End If
and sometimes in file Logger.txt i find that the database is not initilized.
My question is: why the database seems not initialized even if it is initialized in starter service?
Could be there something wrong that de-initilizes the database?