Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timeout Script

Status
Not open for further replies.

JTBorton

Technical User
Jun 9, 2008
345
DE
I'm trying to connect one of my variables to a server, but sometimes it takes FOR EVER and locks everything up in the process. Unfortunately all control is passed to the connect method of the object. Is there some way to override this control and force it to stop after a certain period of time? There is no time out parameter in the connect method.

syntax: OPCServer.Connect(ProgID As String, [Node])
Code:
    svrDALamar.Connect strcProgID, strcNode

-Joshua
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]
 


Hi,

Check the configuration of the DRIVER for that server/db. There may be a timeout argument that you can assign.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Oh, thanks Skip. I'll get with IT and see if they can do something for me. Maybe if I bring them some kolaches and donuts...

-Joshua
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top