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)