PRB: Memory Corruption in VB4-16 When Passing Recordset to SubLast reviewed: September 12, 1997Article ID: Q173649 |
The information in this article applies to:
SYMPTOMSWhen passing a recordset to another Sub or Function, you see memory corruption or may experience a general protection fault (GP fault) in Vba5.dll.
CAUSEThe called procedure may be declaring the recordset "As Object" instead of "As Recordset".
RESOLUTIONChange the declaration in the called procedure to "As Recordset".
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONMicrosoft provides code examples for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. This code is provided 'as is' and Microsoft does not guarantee that the following code can be used in all situations. Microsoft does not support modifications of the code to suit customer requirements for a particular purpose.
Steps to Reproduce Behavior
ResultYou should see either intermittent and worsening corruption of variables in the Debug Window, or you may get a GP fault in Vba5.dll.
WorkaroundChange "Sub Test_Call (rs As Object)" to "Sub Test_Call(rs As Recordset)". NOTE: This problem does not appear in Visual Basic 4.0 32-bit.
|
Additional query words: late-bound late bound vb4
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |