Bull DPX/20 Guida Utente Pagina 90

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 424
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 89
1-78 SOMobjects Base Toolkit: Programmers Reference Manual
somDeallocate Method
Purpose
Frees memory originally allocated by the somAllocate method from the same class object.
Cannot be overridden.
IDL Syntax
void somDeallocate (in string memPtr);
Note: For backward compatibility, this method does not take an Environment parameter.
Description
The somDeallocate method is intended for use to free memory allocated using its dual
method, somAllocate. When building a class, the somBuildClass function is responsible
for registering the procedure that will be executed when this method is invoked on the class.
The default procedure registered by somBuildClass uses the SOMFree function, but the
IDL modifier somdeallocate can be used in the SOM IDL class implementation section to
indicate a different procedure. Users of this method should be sure that the dual method,
somAllocate, was originally used to allocate storage. Also, if the IDL modifier
somdeallocate is used to indicate a special deallocation routine, the IDL modifier
somallocate should be used to indicate a dual procedure to be called when somAllocate is
invoked.
Parameters
receiver A pointer to the class object whose somAllocate was originally used to
allocate the memory now to be freed.
memPtr A pointer to the first byte of the region of memory that is to be freed.
Original Class
SOMClass
Related Information
Methods: somAllocate
Vedere la pagina 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 423 424

Commenti su questo manuale

Nessun commento