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. Is it legal to pass an saBound struct
with cElements set to 0 (I have no idea)? Should you simply return NULL if
elementCount is 0, or do you have to return a SafeArray even with no
elements?
Joe
Joseph Discenza, Senior Programmer/Analyst
mailto:[EMAIL PROTECTED]
Carleton
Inc. http://www.carletoninc.com
574.243.6040
ext. 300
Fax: 574.243.6060
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs