FIX: COM Servers Cannot Redimension Arrays Passed By Reference (221720)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q221720 SYMPTOMS
You pass an array by reference to a method of a COM server built in Visual FoxPro. The method redimensions the array. If you call the method from a Visual FoxPro 6.0 client and use the COMARRAY function, you may see the following error:
OLE IDispatch exception code 302 from Visual FoxPro for Windows: Data type mismatch...
If you call the method from a Visual FoxPro 5.0 client, or a Visual FoxPro 6.0 client not using the COMARRAY function, you may not see an error, but instead the array will not be redimensioned, and the array's original contents remain unchanged. From clients other than Visual FoxPro, you may see the earlier behaviors, or other variations.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This bug has been fixed in Visual Studio 6.0 Service Pack 3.
REFERENCES
Visual FoxPro Help, COMARRAY() topic.
(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Jim Saunders, Microsoft Corporation.
Modification Type: | Major | Last Reviewed: | 10/16/2002 |
---|
Keywords: | kbBug kbDSupport kbVS600sp3fix KB221720 |
---|
|