connamara/quickfixn — Issue #42: Environment.TickCount in OnStart
Author: aferrandi
Created: 2012-02-14 12:19:26+00:00
State: open

Environment.TickCount is used to check if it is time to connect in the SocketInitiator.OnStart method.
The problem is that after 25 days the PC is running, this value becomes negative and the application will never connect again.
(check http://msdn.microsoft.com/en-us/library/system.environment.tickcount.aspx).
I tested the code using instead DateTime.Now and the DateTime.Subtract.Seconds and it seems to work fine.