VBScript taking a few seconds why?... 
Author Message
 VBScript taking a few seconds why?...

Any idea why this is taking 5 seconds on my local machine? I shutter to
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



Mon, 11 Jul 2005 10:10:42 GMT  
 VBScript taking a few seconds why?...
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
refreshing ALL the time.. 13 seconds adds up..

--
Anthony B
------------------------
Death called while you were out. I gave him your pager #


Quote:
> Any idea why this is taking 5 seconds on my local machine? I shutter to
> 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



Mon, 11 Jul 2005 10:18:47 GMT  
 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

>.



Tue, 12 Jul 2005 07:07:16 GMT  
 VBScript taking a few seconds why?...
Just an FYI...

When I first started messing with ADSI a couple of years ago, it was on a
relatively low end NT4 box (PII 166 w/ 64MB ram) and 5-10 second response
was typical.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US



Tue, 12 Jul 2005 09:29:25 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Why Parity Change Takes 1/4 Second???

2. FileSystemObject DriveExists takes 25 seconds to return

3. Help: Keep checking for FileExists every few seconds

4. showing a dialog box for a few seconds

5. pause a script for a few seconds?

6. createobject of Excel.Application.8 takes 30 seconds

7. Show a MsgBox for a few seconds...?

8. Waiting for a few seconds

9. Program takes 30 seconds to shutdown

10. It takes 3 seconds to empty treeview...

11. Warning message: Please wait few seconds...

12. It takes 3 seconds to empty treeview...

 

 
Powered by phpBB® Forum Software