RE: Problem returning empty Safearray from OLE Component

2006-10-16 Thread Joe Discenza
Kevin Godden wrote, on Monday, October 16, 2006 10:21 AM :   saBound.cElements = elementCount; :   SAFEARRAY* pA = SafeArrayCreate(VT_I4, 1, &saBound);   While the loop is protected by checking elementCount, the SafeArrayCreate call is not, so it is almost surely the source of the error.

Problem returning empty Safearray from OLE Component

2006-10-16 Thread Kevin Godden
Hi all,   I hope that somebody can help me with a problem that I am having while returning a 1D Safearray to a Perl client from an OLE component, everything is OK when the array has some elements, but if the array is empty I get the following error:   Win32::OLE(0.1704) error 0x8002000b: "Inval