--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> --- In [email protected], "entropyreduction" 
> <alancampbelllists+yahoo@> wrote:

> See if you can discern anything useful from these links:
> <http://www.keyongtech.com/2313420-accessing-safe-arrays>
> 
> <http://us.generation-nt.com/answer/about-variantclear-function-release-safearray-help-6997622.html>
> 
> <http://www.codeproject.com/KB/office/A_C___dll_for_Excel.aspx>

Ta for links, but not really.  They seem to believe caller owns anything 
returns by a COM method (which isn't the way things seem to be working for me). 
 They also say

that if var.vt includes VT_ARRAY and var.parray = psa,

::SafeArrayDestroy(psa);
hr = ::VariantClear(&var);

will result in two attempts to destroy a SAFEARRAY at psa; in my case either of 
those calls will crash.


Reply via email to