D dadi4 Member Licensed User Longtime User Apr 4, 2012 #1 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
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
A admac231 Active Member Licensed User Longtime User Apr 4, 2012 #2 HttpUtils is asynchronous, meaning it executes independently from your main code. You should put Timer1.Enabled = True in the HttpUtils JobDone sub. Upvote 0
HttpUtils is asynchronous, meaning it executes independently from your main code. You should put Timer1.Enabled = True in the HttpUtils JobDone sub.
D dadi4 Member Licensed User Longtime User Apr 4, 2012 #3 Thank you admac231 for reply admac231 said: HttpUtils is asynchronous, meaning it executes independently from your main code. You should put Timer1.Enabled = True in the HttpUtils JobDone sub. Click to expand... is That means the code after calling Login() inside Timer1_Tick never executed ? Upvote 0
Thank you admac231 for reply admac231 said: HttpUtils is asynchronous, meaning it executes independently from your main code. You should put Timer1.Enabled = True in the HttpUtils JobDone sub. Click to expand... is That means the code after calling Login() inside Timer1_Tick never executed ?
peacemaker Expert Licensed User Longtime User Apr 4, 2012 #4 Timer can be non-stoppable, if declared not in Process_Globals, as it must. Last edited: Apr 4, 2012 Upvote 0
D dadi4 Member Licensed User Longtime User Apr 4, 2012 #5 peacemaker said: Timer can be non-stoppable, if declared not in Process_Globals, as it must. Click to expand... I've tried declaring timer in Process_Globals and in Globals and all non-stopable (in my case using HttpUtils) Upvote 0
peacemaker said: Timer can be non-stoppable, if declared not in Process_Globals, as it must. Click to expand... I've tried declaring timer in Process_Globals and in Globals and all non-stopable (in my case using HttpUtils)
Erel B4X founder Staff member Licensed User Longtime User Apr 4, 2012 #6 is That means the code after calling Login() inside Timer1_Tick never executed ? Click to expand... It is executed just after sending the request. Upvote 0
is That means the code after calling Login() inside Timer1_Tick never executed ? Click to expand... It is executed just after sending the request.
D dadi4 Member Licensed User Longtime User Apr 4, 2012 #7 Erel said: It is executed just after sending the request. Click to expand... Debugger not stop at break point after calling Login() function Upvote 0
Erel said: It is executed just after sending the request. Click to expand... Debugger not stop at break point after calling Login() function
Erel B4X founder Staff member Licensed User Longtime User Apr 4, 2012 #8 The designer doesn't stop there because the service is started at that point. Breaking the code execution at that point would have crashed the application. You can put a Log message there. Upvote 0
The designer doesn't stop there because the service is started at that point. Breaking the code execution at that point would have crashed the application. You can put a Log message there.