will this fix it?
#define MS_PERDAY (24*60*60*60*60) nDone := (Seconds() + iif( nTimeout >= 0, nTimeout, 0 ) ) % MS_PERDAY AbeB wrote: > > Hi All, > > > these lines (and similar ones) in contrib\hbtpathy\telepath.prg > will cause in to wait 24 hours if executed before midnight. > > > > nDone := Seconds() + iif( nTimeout >= 0, nTimeout, 0 ) > > DO WHILE tp_OutFree( nPort ) > 0 .AND. ; > ( nTimeout < 0 .OR. Seconds() < nDone ) > hb_IdleState() > ENDDO > > how can this be fixed? > any ideas? > > thanks, > Abe > > > > -- View this message in context: http://n2.nabble.com/24-hour-wait-loop-in-telephaty-tp4481630p4481850.html Sent from the harbour-devel mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour