2-66
SOMobjects Base Toolkit: Programmer’s Reference Manual
somdReleaseObject Method
Purpose
Indicates that the client has finished using the object.
IDL Syntax
void somdReleaseObject (
in SOMObject obj);
Description
The somdReleaseObject method indicates that the client has finished using the specified
object. This allows the object manager to free the bookkeeping information associated with
the object, if any. The object may also be passivated, but it is not destroyed.
In DSOM, somdReleaseObject causes the client’s proxy for the target object of interest to
be freed; the target object is not freed.
Parameters
receiver A pointer to an ObjectMgr object.
env A pointer to the Environment structure for the method caller.
obj A pointer to the object to be released.
Example
#include <somd.h>
#include <car.h>
Environment ev;
Car car;
string somdObjectId;
...
/* restore proxy from its string form */
FileRead(”/u/joe/mycar”, &somdObjectId);
car = _somdGetObjectFromId(SOMD_ObjectMgr, &ev, somdObjectId);
...
_somdReleaseObject(SOMD_ObjectMgr, &ev, car);
Original Class
ObjectMgr
Related Information
Methods: somdDestroyObject, somdNewObject, somdTargetFree, release
Comentários a estes Manuais