The information in this article applies to:
SYMPTOMSWhen you run a 16-bit program created using Microsoft Visual Basic 4.0, you may receive either of the following error messages:
When either of these error messages occurs, the program may not be able to continue running and may terminate unexpectedly. CAUSEThese error message can occur if the following conditions exist:
There is a problem in the LSTRCMP and LSTRCMPI string-comparison functions in Windows 95. This problem prevents the string comparison from succeeding if Windows 95 is configured for a non-U.S. locale and one of the strings being compared is in a 16-bit segment that has been discarded. Microsoft Visual Basic 4.0 relies on these string-comparison functions to find the program's controls, depending on how the program is written. The error message occurs if the program cannot find its controls. RESOLUTIONTo work around this problem, use any of the following methods:
STATUS
Microsoft has confirmed this to be a problem in Windows 95 and Windows 95
OEM Service Release 2 (OSR2). We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
MORE INFORMATION
Microsoft Visual Basic 4.0 relies on these string-comparison functions to
find names of the program's controls when the controls are referenced as
variables (see below). Programs created using Microsoft Visual Basic 4.0
have their control names stored in code segments marked discardable. Under
relatively low-memory conditions, one or more of these segments may be
discarded, to be reloaded again as needed.
Example 2:
You can work around this problem by using the (.) operator and changing
the code to use a Property procedure, as in this example:
REFERENCESFor additional information, please see the following article in the Microsoft Knowledge Base: Q178529 BUG: LSTRCMP and LSTRCMPI May Fail With Non-US Regional Settings
Keywords : kberrmsg kbinterop kbprg osr2 win95 |
Last Reviewed: June 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |