Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System.Windows.Forms.Timer only fires Tick event when debugg
Message
From
18/04/2007 17:44:40
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
System.Windows.Forms.Timer only fires Tick event when debugg
Miscellaneous
Thread ID:
01217526
Message ID:
01217526
Views:
57
I have this issue that I can't figure out and I'm hoping you can help. I have this application that has several timers on the form. One of them, the timTimeout timer, will only fire if I'm stepping through code. Every time I step through the code with a breakpoint on the
Private Sub timTimeout_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timTimeout.Tick
line and another breakpoint on the
Private Sub timKey_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timKey.Tick
line (one of the other timers) then execution goes into the timTimeout_Tick routine and all is well. But if I let the code just run normally without any breakpoints, execution never reaches the timTimeout_Tick routine.

I thought it might have something to do with the two timers having intervals that were causing them to "hit" at the same time. timKey.interval is 250 and timTimeout.interval is 30000. So I made timTimeout's interval 30030 just to offset it a bit but it still didn't fire.

What could cause this behavior please? I'm working with Windows CE.net and Visual Studio 2003 if that helps.

Thanks.
~~~~~~~~~~
Denise
~~~~~~~~~~
Reply
Map
View

Click here to load this message in the networking platform