Timer - in W98 fails, in WinXP OK

I think, that I found another bug in .NET Framework 1.1. My programs works very well under Windows XP, but under W98 (tested on many computers) fails. After weeks of research I realized that one problems is in the System::Timers::Timer class. I use timer like this:

System::Timers::Timer* timer = new System::Timers::Timer(1000);

timer->Elapsed += new System::Timers::ElapsedEventHandler(this, CasVyprsel);

timer->AutoReset = true;

timer->Start();

This should fire events every second and in WinXP it really does, but in W98 it fires only several times. Sometimes it fires only 2 events, sometimes 5, sometimes 3 and after that no more events are fired anymore (I am pretty sure, that I don't unregister event, close timer or something like this). Solution is to set AutoReset property to false and Start timer again and again after every event, but I think that it really should work.

I can live with this, but I think, that .NET Framework has much more corpses in wardrobe, than this one. For example my programs makes weird things when W98 suspend HDD, but on WinXP everything is OK.



Answer this question

Timer - in W98 fails, in WinXP OK

  • KristinBarker

    It really works. I thought, that I tried that already, but now it's working. Thank you.
  • Dullax

    It really works, but only in same cases
  • Peter Aspect

    It looks, that reinstalling of Framework and Framework service pack resolved everything. Something was wrong on my W98 computers.
  • Joe_D

    Have u tried to install .net ServicePack

  • Timer - in W98 fails, in WinXP OK