SolidWorks API
Help
Passing SafeArrays in C++
Be careful when managing SafeArray memory. If you receive a SafeArray from
SOLIDWORKS, you are responsible for destroying it. Also,
if you pass a SafeArray to SOLIDWORKS, then SOLIDWORKS does not
destroy the SafeArray. You are responsible for destroying the SafeArray.
See: