Overlapped.Free(NativeOverlapped*) 메서드

정의

Important

이 API는 CLS 규격이 아닙니다.

메서드에서 할당한 네이티브 겹치는 구조체와 연결된 관리되지 않는 메모리를 해제 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

매개 변수

nativeOverlappedPtr
NativeOverlapped*

해제할 구조체에 NativeOverlapped 대한 포인터입니다.

특성

예외

nativeOverlappedPtrnull입니다.

설명

메서드에서 FreeNativeOverlapped 받은 모든 Pack 포인터에 대해 메서드를 정확히 한 번 호출해야 합니다. 메서드를 호출하지 않으면 메모리가 Free 누수됩니다. 메서드를 Free 두 번 이상 호출하면 메모리가 손상됩니다.

적용 대상