Bull DPX/20 Uživatelská příručka Strana 234

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 424
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 233
2-66
SOMobjects Base Toolkit: Programmers 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
Zobrazit stránku 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 423 424

Komentáře k této Příručce

Žádné komentáře