Bull DPX/20 Guia do Utilizador Página 234

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 424
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 423 424

Comentários a estes Manuais

Sem comentários