All Manuals > COM/Automation User Guide and Reference Manual > 2 COM Reference Entries

co-task-mem-free Function

Summary

Frees a block of foreign memory used in COM method argument passing.

Package

com

Signature

co-task-mem-free pointer => pointer2

Arguments
pointer
A foreign pointer for the block to be freed.
Values
pointer2
The same as pointer.
Description

The function co-task-mem-free calls the C function CoTaskMemFree() to free a block of memory pointed to by pointer. pointer should not be dereferenced after calling this function.

Examples
(co-task-mem-free ptr)
See also

co-task-mem-alloc


COM/Automation User Guide and Reference Manual - 01 Dec 2021 19:38:38