ThreadPoolBoundHandle.FreeNativeOverlapped(NativeOverlapped*) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Important
이 API는 CLS 규격이 아닙니다.
메서드에서 할당한 구조체와 NativeOverlapped 연결된 메모리를 해제합니다 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
매개 변수
- overlapped
- NativeOverlapped*
해제할 구조체에 대한 NativeOverlapped 관리되지 않는 포인터입니다.
- 특성
예외
overlapped은 null입니다.
이 메서드는 개체가 ThreadPoolBoundHandle 삭제된 후에 호출되었습니다.
설명
Caution
메서드를 FreeNativeOverlapped 사용하여 할당된 모든 NativeOverlapped 관리되지 않는 포인터에서 메서드를 AllocateNativeOverlapped 정확히 한 번 호출해야 합니다. 메서드를 호출하지 않으면 메모리가 FreeNativeOverlapped 누수됩니다. 동일한 FreeNativeOverlapped 관리되지 않는 포인터에서 메서드를 두 번 이상 호출 NativeOverlapped 하면 메모리가 손상됩니다.