Hello,
Again I am seeing strange things : in a service, in Service_Create I have initialized a Timer
While debugging, I have seen in the logs
This turns my head on because :
As a workaround I now test if the Timer is already initialized. But is it the right way to do things ?
Many thanks
Again I am seeing strange things : in a service, in Service_Create I have initialized a Timer
While debugging, I have seen in the logs
1003: Object was already initialized
This turns my head on because :
- the service was destroying itself
- the Timer is initialized in Service_Create only
As a workaround I now test if the Timer is already initialized. But is it the right way to do things ?
B4X:
Sub Service_Create
If Not(TEnvoiSMS.IsInitialized) Then TEnvoiSMS.Initialize("TEnvoiSMS",DateTime.TicksPerSecond/4)
LoadStuff
End Sub
Many thanks