BUG: Returning Empty Array from ActiveX EXE Fails with SP2Last reviewed: November 24, 1997Article ID: Q177090 |
The information in this article applies to:
SYMPTOMSYou receive an error when you use the Array function to return an empty variant array from an out-of-process ActiveX Component (ActiveX EXE):
Run-time error '5': Invalid Procedure Call or ArgumentThis error occurs only after the installation of Visual Studio 97 Service Pack 2.
RESOLUTIONThere are several workarounds to this problem: - Use an in-process ActiveX Component (ActiveX DLL).
-or-- Implement error handling in the client application.
-or-- Instead of returning an empty array, return Array(vbNull). Note that this will actually return an array that has one element. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : VBKBAX VBKBObj kberrmsg Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbbug |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |