Bull DPX/20 Betriebsanweisung Seite 177

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 176
2-9
DSOM Framework Reference
SOMD_NoORBfree Function
Purpose
Specifies to DSOM that the client program will use the SOMFree function to free memory
allocated by DSOM, rather than using the ORBfree function.
C Syntax
void SOMD_NoORBfree ();
Description
The SOMD_NoORBfree function is used in a DSOM client program to specify to DSOM that
the client program will use the SOMFree function to free memory allocated by DSOM, rather
than using the ORBfree function.
Typically, a DSOM client program will use SOMFree to free memory returned from local
method calls and ORBfree to free memory returned from remote method calls. The
SOMD_NoORBfree function allows programmers to use a single function (SOMFree) to
free blocks of memory, regardless of whether they were allocated locally or by DSOM in
response to a remote method call.
SOMD_NoORBfree, if used, should be called just after calling SOMD_Init in the client
program. In response to this call, DSOM will not keep track of the memory it allocates for
the client. Instead, it will assume that the client program will be responsible for walking all
data structures returned from remote method calls, calling SOMFree for each block of
memory within.
Example
SOMD_Init();
SOMD_NoORBfree();
/* rest of client program */
Related Information
Functions: ORBfree, SOMFree
Seitenansicht 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare