Compartir a través de


ThreadPoolBoundHandle.FreeNativeOverlapped(NativeOverlapped*) Método

Definición

Importante

Esta API no es conforme a CLS.

Libera la memoria asociada con una estructura NativeOverlapped asignada por el método AllocateNativeOverlapped.

public:
 void FreeNativeOverlapped(System::Threading::NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
public void FreeNativeOverlapped (System.Threading.NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public void FreeNativeOverlapped (System.Threading.NativeOverlapped* overlapped);
[<System.CLSCompliant(false)>]
member this.FreeNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> unit
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
member this.FreeNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> unit

Parámetros

overlapped
NativeOverlapped*

Puntero no administrado a la estructura NativeOverlapped que se va a liberar.

Atributos

Excepciones

overlapped es null.

Se llamó a este método después de haber eliminado el objeto ThreadPoolBoundHandle.

Comentarios

Precaución

Debe llamar al FreeNativeOverlapped método exactamente una vez en cada NativeOverlapped puntero no administrado asignado mediante el AllocateNativeOverlapped método . Si no llama al FreeNativeOverlapped método , perderá memoria. Si llama al FreeNativeOverlapped método más de una vez en el mismo NativeOverlapped puntero no administrado, la memoria estará dañada.

Se aplica a