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



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

GetMem

Allocate new memory on the heap

Declaration

Source position: line 0

procedure Getmem(

  var p: pointer;

  Size: PtrInt

);

function GetMem(

  size: PtrInt

):pointer;

Description

Getmem reserves Size bytes memory on the heap, and returns a pointer to this memory in p. If no more memory is available, nil is returned.

For an example, see Freemem.

Errors

None.

See also

Freemem

  

Release allocated memory

Dispose

  

Free dynamically allocated memory

New

  

Dynamically allocate memory for variable

Notes

 No notes exist for this page yet. 





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