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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Livelink Session Timeouts in VB?

Status
Not open for further replies.

Liamraz

Programmer
Jan 8, 2005
3
US
Hi,

I am attempting to establish a Livelink connection using the following code in Visual Basic:

status = LL_SessionAllocEx(g_lngSession, "localhost", _
"2099", "", _
"Admin", "password", 0)

Now, this works great. The only issue is that until something is returned, my app basically freezes. So if the network has lag, or if the hostname is incorrect, or server is off, the amount of time before the status code is returned can vary from half a second to 30 seconds.

My question is how do I prevent the app from locking until the session has been established?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top