KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Closing a 4D Open for 4D connection
PRODUCT: 4D Open | VERSION: | PLATFORM: Mac & Win
Published On: June 4, 2002
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

When closing a connection made previously with 4D Open, remember that you need to call three 4D Open routines to help clean up memory.

OP Close Connection
OP Delete 4D Server
OP Unload network component

OP Close Connection closes the current 4D Open connection. OP Delete 4D Server cleans up the memory that was used to hold network information about the 4D Open connection. Finally, Op Unload network component clears memory that was used by the Network Component when we called OP Load network component.

An example of how our code would look is similar to the following:

$ErrCode:= Op Close connection (vConnectionID)
$ErrCode:= Op Delete 4D Server (vServerID)
$ErrCode:= OP Unload network component (vComponentID)