Compartir a través de


Overlapped.Free(NativeOverlapped*) Método

Definición

Importante

Esta API no es conforme a CLS.

Libera la memoria no administrada asociada a una estructura nativa superpuesta asignada por el método Pack.

public:
 static void Free(System::Threading::NativeOverlapped* nativeOverlappedPtr);
[System.CLSCompliant(false)]
public static void Free (System.Threading.NativeOverlapped* nativeOverlappedPtr);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static void Free (System.Threading.NativeOverlapped* nativeOverlappedPtr);
[<System.CLSCompliant(false)>]
static member Free : nativeptr<System.Threading.NativeOverlapped> -> unit
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member Free : nativeptr<System.Threading.NativeOverlapped> -> unit

Parámetros

nativeOverlappedPtr
NativeOverlapped*

Puntero a la estructura NativeOverlapped que se va a liberar.

Atributos

Excepciones

nativeOverlappedPtr es null.

Comentarios

Debe llamar al Free método exactamente una vez en cada NativeOverlapped puntero que reciba del Pack método . Si no llama al Free método , perderá memoria. Si llama al Free método más de una vez, se dañará la memoria.

Se aplica a