Destroying instances
Destroying the proxy object instance
After you have finished using an EAServer component,
you can explicitly destroy the EAServer proxy
object by using the DESTROY statement, or you can
let PowerBuilder’s garbage collection facility clear the
object out of memory for you automatically. In either case, the
destruction of the client-side proxy object has no effect on the
lifecycle of the server component. Destruction of the server component
is handled by EAServer.
Deactivating the component instance
If the Automatic Demarcation/Deactivation setting
is disabled for a component, and you close the client application
while the component is still bound to the client (the component
did not call SetComplete or SetAbort),
the component is not deactivated. To ensure
that the component instance is deactivated, you can do one of the
following things:
-
In the Close event of the
client application, invoke a method of the server component that
deactivates the component (by calling SetComplete or SetAbort). -
Set the Timeout property for the component to a
small positive value.