Server Reference Guide : ASOLib--OpenROAD Server Library : System Service Call Procedures : DestroyASOSession System Service Call Procedure
 
Share this page          
DestroyASOSession System Service Call Procedure
This is a system SCP invoked explicitly from a 4GL client using RemoteServer.Call4GL() or implicitly using a COM ASOSession.Disconnect method or COM object release. It destroys a persistent session context object in the remote application instance.
Before destroying the session context object, the session context is restored, and the Dispose() method of the current BPM object is invoked. Error messages are returned in the BYREF(uc_osca) object.
The COM client ASOSession object is described in COM (Non-OpenROAD) Client ASO Session Object.
Parameters:
('DestroyASOSession', b_osca = uc_osca /*byref*/)
Return Data Type: None (SCPs are invoked by Call4GL)
Example—DestroyASOSession:
/* assume we have already successfully run CreateASOSession */ 
i_status = CurRemoteServer.Call4GL ('DestroyASOSession',
                                    b_osca = BYREF(OSCA));
i_status = OSCA.CheckAndHandleError (p_i_aso_retval = i_status); 
CurRemoteServer.Release();
. . .