I am trying to get CComSafeArray<d ouble> x, through a reference using x.GetSafeArrayP tr(). When the destructor calls ~CComSafeArray( ) throw(), I am getting the follwing debug assertion "Expression : (((HRESULT)(hRe s)) >= 0)". Is there a way to avoid it?
For back ground, I am passing "x" into a C# Interface wrapper to determine the value based on C# project.
C++ Code snippets:
For back ground, I am passing "x" into a C# Interface wrapper to determine the value based on C# project.
C++ Code snippets:
Code:
CComSafeArray<double> x;
CComSafeArray<double> y;
if (!GetData(x.GetSafeArrayPtr(), y.GetSafeArrayPtr())
{
ASSERT (FALSE);
}