Microsoft SDK for Java

freeCoTaskMem

This method of the DllLib class frees a native memory block by invoking the Win32 function CoTaskMemFree. Any global memory handle that has a zero high-order word is safely ignored.

Syntax

public static void freeCoTaskMem(int ptr);

Parameters

ptr The memory block to free.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.