help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Types][Classes] Reference for unit 'pooledmm' (#fcl)

TNonFreePooledMemManager.NewItem

Return a pointer to a new memory block

Declaration

Source position: pooledmm.pp line 87

public function TNonFreePooledMemManager.NewItem: Pointer;

Function result

Pointer to a new memory block

Description

NewItem returns a pointer to an unused memory block of size ItemSize. It will allocate new memory on the heap if necessary.

Note that there is no way to mark the memory block as free, except by clearing the whole list.

Errors

If no more memory is available, an exception may be raised.

See also

TNonFreePooledMemManager.Clear

  

Clears the memory

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505