gettickcount returns a negative number???




Hi Everyone -

I have a long running application - the machine doesn't
get rebooted for several months in a row.

My application uses gettickcount to build a unique string
that is used to communicate with a host system.

everything works fine but now i'm receiving a negative
number from the API call when the system passes the x number of
days mark....

i tried to recreate the problem using a loop in VB6
but the program errors out OK when it goes too far -

so why does the API return a negative number?
the documentation states gettickcount will return a zero
if the time exceeds the days threshold???

please advise


take care
tony


.



Relevant Pages

  • Re: Why doesnt status bar update consistently?
    ... Are you saying the debug results are not consistent with how you see the ... statusbar change - if so I'd be perplexed! ... >> Might be better to use an API, eg Gettickcount ...
    (microsoft.public.excel.programming)
  • Re: gettickcount returns a negative number???
    ... > My application uses gettickcount to build a unique string ... > that is used to communicate with a host system. ... > so why does the API return a negative number? ... > the documentation states gettickcount will return a zero ...
    (microsoft.public.vb.winapi)
  • Re: Determining system uptime
    ... > GetTickCount. ... > Please do not send e-mail directly to this alias. ... >> Is there an API call or a registry key to look at that will get the ... is it remoteable (I need this information from remote ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Determining system uptime
    ... Arkady ... >> GetTickCount. ... >>> Is there an API call or a registry key to look at that will get the ... is it remoteable (I need this information from remote ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Determining system uptime
    ... GetTickCount. ... Please do not send e-mail directly to this alias. ... > Is there an API call or a registry key to look at that will get the ... is it remoteable (I need this information from remote ...
    (microsoft.public.win32.programmer.kernel)