CMem

From Free Pascal wiki
Revision as of 07:56, 5 September 2014 by Olaf (talk | contribs)
Jump to navigationJump to search

Deutsch (de) English (en)


If you include the cmem unit, it will replace the native Free Pascal memory manager with the C library memory manager. All memory management is done by the C memory manager when the cmem is package is included in the uses clause of your program. The unit should be the first unit in the uses clause, otherwise memory can already be allocated by initialization routines in units that are initialized before the C memory manager is installed.

There is a small example program testcmem, which demonstrates the use of the cmem unit.

Go to back Packages List