Page 1 of 1 1
Topic Options
#20373 - 2002-04-22 10:51 PM addprinterconnection timeout?
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Has anyone had any trouble getting the addprinter connection to work consistently? I have an issue where at one run on a desktop the addprinterconnection (apc()) will work just fine... then on a subsequent run the apc() will just sit there for minutes before it returns.. if it does. It is not a driver or permission issue because if I close the script and run it again generally it will run fine. Just wondering if anyone else has had this issue.

All clients are 2K or NT4 and the print server is 2000.

Thanks for the help in advance.
_________________________
Austin Henderson

Top
#20374 - 2002-04-22 11:00 PM Re: addprinterconnection timeout?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Are you connecting to 2000 Professional or Server/Advanced Server. If it is Professional, there is a 10 user limit on concurrent connectiosn, thereofore you might have reached the connection limit. What is the error code of the failed ADDPRINTERCONNECTION? Ccheck it with
code:
? @ERROR+' - '+@SERROR

directly after the ADDPRINTERCONNECTION command.
_________________________
There are two types of vessels, submarines and targets.

Top
#20375 - 2002-04-22 11:02 PM Re: addprinterconnection timeout?
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
The Server is 2000 Server

I am not getting an error... it does not come back from the apc() function... the script stops executing and just sits there.

Thanks for the prompt reply.
_________________________
Austin Henderson

Top
#20376 - 2002-04-25 01:30 AM Re: addprinterconnection timeout?
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Does anyone have any clue as to why this would be happening. If I stop the script and run it right after that it will connect?

Odd things....
_________________________
Austin Henderson

Top
#20377 - 2002-04-25 03:14 PM Re: addprinterconnection timeout?
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I'm starting to wonder if it has more to do with how you're calling your kix32 .kix script. Strange things seem to happen to me if either the kix32.exe or script.kix file is not referenced directly. Sometimes, the script times out and doesn't execute properly. I realize this may have nothing to do with the problem, but if you run the script manually and it works every time, it makes me wonder...

Brian

Top
#20378 - 2002-04-25 03:23 PM Re: addprinterconnection timeout?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Austin:

Do you get any error codes? I asked you to insert an error code statement after the ADDPRINTERCONNECTION statement. So, what does it return?
_________________________
There are two types of vessels, submarines and targets.

Top
#20379 - 2002-04-25 03:32 PM Re: addprinterconnection timeout?
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Calling the script manually does not necessarily mean it will run.. it just means that it runs on that second call. It is sporadic. Regarding the error codes... it is not coming back from the APC() function so I dont think any error codes are bing generated. I added check output statements along the way and once it goes into whichever apc() I am trying to call it will not come back. That is why I responded with the statement about I am not getting error codes. If the script is not stepping past A... B will not be called. Perhaps I am wrong.. I will give it a shot for you but like I said it is a hard problem to duplicate... I cannot duplicate it until a user calls me and says there login script has been sitting there for 10 min. Then when they run it again all is ducky.

Thanks for the sugguestions...
_________________________
Austin Henderson

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1077 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.12 seconds in which 0.083 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org