System.Threading.Overlapped.Free Method

Frees the unmanaged memory associated with a native overlapped structure allocated by the erload:System.Threading.Overlapped.Pack method.

Syntax

[System.CLSCompliant(false)]
public static void Free (NativeOverlapped* nativeOverlappedPtr)

Parameters

nativeOverlappedPtr
A pointer to the System.Threading.NativeOverlapped structure to be freed.

Remarks

You must call the Overlapped.Free(NativeOverlapped*) method exactly once on every System.Threading.NativeOverlapped pointer you receive from the erload:System.Threading.Overlapped.Pack method. If you don't call the Overlapped.Free(NativeOverlapped*) method, you will leak memory. If you call the Overlapped.Free(NativeOverlapped*) method more than once, memory will be corrupted.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0