I have a user that gets the subject error every time he boots. Has anyone seen this VB error as it relates to autodomain? Is there a solution out there?
Message was edited by: eguhlin on 7/19/10 10:25:54 AM CDTIs there anybody who is able to help with this? Although the users are able to log in and work, It would not be prudent for me to have errors popping up on users machines after logging in. Any help would be much appreciated.
sure - what version of Autodomain are you using though? The line number isnt useful unless I know what code to look at.
Thank you. We are using autodomain version 5.25
interesting - it's trying to get the date of a sync delay.
do you have a copy of the client log which goes along with these machines? Maybe the date is not in a format I expect to see.
If iPos = 0 Then
' no delay message
V5SyncDelayStartTime = Now
Else
' delay message in log, work out when the delay expires
i = InStrRev(myfile,vbNewLine,iPos,vbtextcompare) + 1
j = InStr(i,myfile,vbTab,vbtextcompare)
If j>i Then
' get the start time
V5SyncDelayStartTime = CDate(Mid(myfile,i,j-i))
Else
V5SyncDelayStartTime = Now
End If
' get the delay
i = InStr(i,myfile,"for ",vbtextcompare)
j = InStr(i,myfile,"minutes",vbtextcompare)
Debug.WriteLine Mid(myfile,i)
Debug.WriteLine Mid(myfile,j)
tTime = Mid(myfile,i+4,j-(i+5))
V5SyncDelayStartTime = DateAdd("n",ttime,V5SyncDelayStartTime)
writedebug 1,"Detected next sync will start at " & V5SyncDelayStartTime
End If
I have sent an email to get the log file. The user is in EMEA and not online, so I will post as soon as I get it. Thanks for the help.
curious - I wonder if the reported date is in USA format (month-day-year), not the format of the locale.
It would certainly throw the script out, as cDate expects the text to be in the same locale as the system.
Simon,
I spoke to the tech in EMEA and he said the error disappeared as mysteriously as it appeared. However, I have attached the log in case this can help someone in the future.
Corporate Headquarters
6220 America Center Drive
San Jose, CA 95002 USA