
VBScript taking a few seconds why?...
Hi,
Binding to objects can take a long time if the domain is
not available. It takes that long to time out. This
explanation only makes sense, however, if you have "On
Error Resume Next". Without it, the script should fail on
the GetObject statement and raise an error.
Once you are authenticated to the domain, it should be
very fast.
Richard
Quote:
>-----Original Message-----
>Sorry, I guessed at 5 seconds before I actually put the
timers in..
>obviously it's longer.. and it makes it a pain when I
keep testing it.. and
Quote:
>refreshing ALL the time.. 13 seconds adds up..
>--
>Anthony B
>------------------------
>Death called while you were out. I gave him your pager #
message
>> Any idea why this is taking 5 seconds on my local
machine? I shutter to
Quote:
>> think how it would react with an actual NT Domain...
>> cut from blah.asp :
>> response.write "<BR> Before the object" & now()
>> Set objUser = GetObject("WinNT://" & strDom & "/" &
LANID & ",user")
>> response.write "<BR> after it gets the UserObJ : " & now
()
>> -----------------------------------
>> gives me in the output.. why?:
>> :
>> Before the object1/22/2003 9:09:47 PM
>> after it gets the UserObJ : 1/22/2003 9:10:00 PM
>> --
>> Anthony B
>> ------------------------
>> Abbut: Crab Nebula
>.