Timer No Stop

dadi4

Member
Licensed User
Longtime User
I do stop the timer using:

Sub Timer1_Tick
Timer1.Enabled=False
LogIn() '' login using HttpUtils and takes some time notmaly
Timer1.Enabled=True
End Sub

before return from Login() function timer tick even it disabled
 

dadi4

Member
Licensed User
Longtime User
Thank you admac231 for reply

HttpUtils is asynchronous, meaning it executes independently from your main code. You should put Timer1.Enabled = True in the HttpUtils JobDone sub.

is That means the code after calling Login() inside Timer1_Tick never executed ?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Timer can be non-stoppable, if declared not in Process_Globals, as it must.
 
Last edited:
Upvote 0
Top