Hi,
Can somebody please explain how the memory allocation/de-allocation occurs when we passing values between COM object and VB.
My Concerns are: 1.
IMyInterface::Method1 ([in] BSTR* pVal, [in] SAFEARRAY(BSTR)* pArray);
do we need to free the allocated memory for above parameters inside COM object ?
2.
IMyInterface::Method2 ([in, out] BSTR* pVal);
In this case, Will the VB take care of freeing memory for the COM return values ? (COM object allocates memory for these return values)
3.
IProxy_MyInterface::Event1 ([in] BSTR* pVal);
Once the event is handled inside VB, again, will de-allocation of memory of parameters be taken care by VB ?
Appreciate your help.
Thank you