BUG: GetSetting Causes GP Fault in Vba2.dllLast reviewed: July 15, 1997Article ID: Q162621 |
4.00
WINDOWS
kbprg kbbug
The information in this article applies to:
SYMPTOMSWhen you use the GetSetting Function in Visual Basic 4.0, 16-bit, you may receive a General Protection Fault in Module Vba2.dll at 0011:360C. This error is likely to occur if you use an uninitialized, variable-length string as the argument for the default value of GetSetting.
RESOLUTIONTo resolve the problem, use a fixed-length string or assign a value to the string. For example, modify the Load event code of Form1 in step 2 of the Steps to Reproduce Problem section of this article to the following:
Dim DefaultValue As String DefaultValue = "" Call GetSetting ("MyINI", "SectionName", "KeyValue", DefaultValue) -or- Dim DefaultValue As String * 40 Call (GetSetting "MyINI", "SectionName", "KeyValue", DefaultValue) STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Problem
|
KBCategory: kbprg kbbug
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |