ThreadPoolBoundHandle.FreeNativeOverlapped(NativeOverlapped*) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Frees the memory associated with a NativeOverlapped structure allocated by the AllocateNativeOverlapped method.
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*
An unmanaged pointer to the NativeOverlapped structure to be freed.
- Attributes
overlapped
is null
.
This method was called after the ThreadPoolBoundHandle object was disposed.
Ettevaatust!
You must call the FreeNativeOverlapped method exactly once on every NativeOverlapped unmanaged pointer allocated by using the AllocateNativeOverlapped method. If you do not call the FreeNativeOverlapped method, you will leak memory. If you call the FreeNativeOverlapped method more than once on the same NativeOverlapped unmanaged pointer, memory will be corrupted.
Toode | Versioonid |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: