Bull DPX/20 Guida Utente Pagina 172

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 424
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 171
2-4
SOMobjects Base Toolkit: Programmers Reference Manual
ORBfree Function
Purpose
Frees memory allocated by DSOM for return values and out arguments.
C Syntax
void ORBfree (void* ptr);
Description
The ORBfree function is used to free memory for method return values or out arguments
which are placed in memory allocated by DSOM (versus the calling program). For example,
strings, arrays, sequence buffers, and “any” values are returned in memory which is
dynamically allocated by DSOM.
Parameters
ptr A pointer to memory that has been dynamically allocated by DSOM for a
method return value or out argument.
Example
#include <somd.h>
#include <myobject.h> /* provided by user */
MyObject obj;
Environment ev;
string str;
/* assume myMethod has the following IDL declaration
* in the MyObject interface:
*
* void myMethod(out string s);
*/
_myMethod(obj, &ev, &str);
...
/* free storage */
ORBfree(str);
Related Information
Functions: SOMD_NoORBfree
This function is described in section 5.16, “Argument Passing Considerations”, and section
5.17, “Return Result Passing Considerations”, of the CORBA 1.1 specification.
Vedere la pagina 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 423 424

Commenti su questo manuale

Nessun commento