DEFINE CLASS Math AS SESSION OLEPUBLIC FUNCTION Multiply(tnNum1, tnNum2) LOCAL lnResult, loMtx, loContext * Create a reference to the MTS object loMtx = CREATEOBJECT(“MTXAS.APPSERVER.1”) * Create a reference to the Context object loContext = loMtx.GetObjectContext() lnResult = tnNum1 * tnNum2 * Commit the transaction if there is one * and tell MTS that we’re done using the component loContext.SetComplete() RETURN lnResult ENDFUNC ENDDEFINEMy reading tells me that the call to SetComplete() tells the component the client is finished with it, and it may end up cleared from server memory.