Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
System.Windows.Forms.Timer only fires Tick event when debugg
Message
De
18/04/2007 17:44:40
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
System.Windows.Forms.Timer only fires Tick event when debugg
Divers
Thread ID:
01217526
Message ID:
01217526
Vues:
56
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
~~~~~~~~~~
Répondre
Fil
Voir

Click here to load this message in the networking platform