[Mono-list] Bug in Environment.TickCount

Thiago M. Sayão thiago.sayao at gmail.com
Thu Jul 19 21:38:56 EDT 2007


Hello!

Enrironment.TickCount is supposed to return the miliseconds since the
boot. For my surprise it was returning a negative number which should
only happen on the 47th day of uptime.

I did i fix (attached) but it doesn't seem 100% correct and i am not
sure if it would work after some days.

Since i'm coding a msn library and msn p2p protocol uses GetTickCount(),
it's messing things for me!

Can anyone take a look?

Thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 873 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070719/3316faeb/attachment.bin 


More information about the Mono-list mailing list