ThreadPoolBoundHandle.FreeNativeOverlapped(NativeOverlapped*) Méthode

Définition

Important

Cette API n’est pas conforme CLS.

Libère la mémoire associée à une structure NativeOverlapped allouée par la méthode 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

Paramètres

overlapped
NativeOverlapped*

Pointeur non managé vers la structure NativeOverlapped à libérer.

Attributs

Exceptions

overlapped a la valeur null.

Cette méthode a été appelée après la suppression de l’objet ThreadPoolBoundHandle.

Remarques

Attention

Vous devez appeler la FreeNativeOverlapped méthode exactement une fois sur chaque NativeOverlapped pointeur non managé alloué à l’aide de la AllocateNativeOverlapped méthode . Si vous n’appelez pas la FreeNativeOverlapped méthode , vous allez fuiter la mémoire. Si vous appelez la FreeNativeOverlapped méthode plusieurs fois sur le même NativeOverlapped pointeur non managé, la mémoire est endommagée.

S’applique à