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