4d open connection
Mike Neyman (12/1/08 3:44PM)
Chuck Miller (12/1/08 5:35PM)
Mike Neyman (12/1/08 3:44 PM)
Chuck,
I have a problem where at times my connection goes away. I have not
been able to figure out how to check and see if it is still valid.
I don't use 4D Open anymore, but I did something like this when I did
use it. I found the connection would often time out when processing
information in between 4D Open commands. Therefore, before I called
any series of 4D Open commands, I would call this wrapper:
If (Not(âóävServerID>0))
$vErrCode:=op_Connect ($vProcess)
Else
$vErrCode:=OP Open connection
(âóävServerID;vConnID;âóävStoreName;"user";"pw";$vProcess)
End if
$0:=$vErrCode
Where <>vvServerID was the ID to the server I was connecting to,
$vProcess, was the name of the process I wanted to created on the
server, and the "op_Connect" method looked like this:
vCompID:=op_GetCompID ("TCP")
$vErrCode:=@OP Load network component (vCompID)
$vErrCode:=$vErrCode+OP Find 4D Server
(vCompID;âóävParCorpServerIP;âóävServerID)
$vErrCode:=$vErrCode+OP Open connection
(âóävServerID;vConnID;âóävStoreName;"user";"pw";$vProcess)
$0:=$vErrCode
I believe OP Load network component might be obsolete now, because I
haven't used this for quite some time (I rewrote everything using web
services, and it's INFINITELY faster). That said, this code did work
flawlessly for a very long time.
HTH,
Mike
Chuck Miller (12/1/08 5:35 PM)
<62AEC4F5-0D03-492C-9B96-F7E093453B71@...
Hi all,
I have a problem where at times my connection goes away. I have not
been able to figure out how to check and see if it is still valid.
Environment 4D 2004.7 latest release on both servers
I do a OP Open connection
Is there any way to check to see if connection is still alive?
I tried OP remote connection status hoping it would work, but it does
not.
TIA and Regards
Chuck
--------------------------------------------------------------------------
-
Chuck Miller
Voice: (617) 739-0306
Informed Solutions, Inc. Fax:
(617) 232-1064
Reply to this message
Summary created 12/2/08 at 2:08AM by Intellex Corporation
Comments welcome at: feedback@intellexcorp.com