Frees the unmanaged memory associated with a native overlapped structure allocated by the erload:System.Threading.Overlapped.Pack method.
- nativeOverlappedPtr
- A pointer to the System.Threading.NativeOverlapped structure to be freed.
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.