Eric:
I tried Timer request following this topic: https://groups.google.com/forum/?fromgroups#!searchin/httpfiddler/reissue/httpfiddler/8r9Hop7LMXg/0GROyv2HXWwJ.
Everything is ok at first, it runs as expecting few days. Until this morning. The Timer started, but does not raise the tick!
What is mysterious is if I put a MessageBox following the oTimer.Start() and keep the MessageBox on, it runs quite normal. But once I click the OK button to turn off the MessageBox, the oTimer stop raising tick again.
The code looks like as following:
What the problem is it? What happened?
thx a lot!
I tried Timer request following this topic: https://groups.google.com/forum/?fromgroups#!searchin/httpfiddler/reissue/httpfiddler/8r9Hop7LMXg/0GROyv2HXWwJ.
Everything is ok at first, it runs as expecting few days. Until this morning. The Timer started, but does not raise the tick!
What is mysterious is if I put a MessageBox following the oTimer.Start() and keep the MessageBox on, it runs quite normal. But once I click the OK button to turn off the MessageBox, the oTimer stop raising tick again.
The code looks like as following:
static var oTimer: System.Windows.Forms.Timer;
static function TimerStart(){
oTimer = new System.Windows.Forms.Timer
();
oTimer.add_Tick( OnTimer );
oTimer.Interval = 3000;
oTimer.Start();
MessageBox.Show(
'Timer Started: '
+ oTimer.Interval.toString() );
}
What the problem is it? What happened?
thx a lot!