Mono Class Library: Mono.Unix.UnixMarshal Overview | Members

Mono.Unix.UnixMarshal.FreeHeap Method

Frees the memory referenced by ptr. [Edit]

public static void FreeHeap (IntPtr ptr)

See Also

UnixMarshal.AllocHeap
UnixMarshal.ReAllocHeap
Mono.Unix.Native.Stdlib.free

Parameters

ptr
A IntPtr containing the address of a block of memory previously returned by UnixMarshal.AllocHeap or UnixMarshal.ReAllocHeap. [Edit]

Remarks

If ptr is IntPtr.Zero, no action occurs.

The "system heap" is where dynamic memory is allocated by the runtime C library, MSVCRT.DLL on Win32 and libc on Unix platforms.

[Edit]

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0