FIX: GPF/UAE When Converting String > 32K to Double PrecisionLast reviewed: October 30, 1997Article ID: Q93435 |
2.00
WINDOWS
kbenv kbbuglist
The information in this article applies to: - The Standard and Professional Editions of Microsoft Visual Basic for Windows, version 2.0
SYMPTOMSWhen converting a large string that is greater than 32K into a double precision number, a General Protection (GP) fault or Unrecoverable Application Error (UAE) can occur. An example of this problem is described in detail further below. This problem also occurs with the functions CCur, CInt, CLng, CSng as well as CDbl.
WORKAROUNDTo work around the problem, break the string into two parts, an x part and a y part. Then you can print both parts one after the other and the error does not occur because each part is less than 32K. Here is an example:
Show x = String(20000, "1") y = String(20000, "1") Print CDbl(x);CDbl(y) STATUSMicrosoft has confirmed this to be a problem in the Standard and Professional Editions of Microsoft Visual Basic version 2.0 for Windows. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.
MORE INFORMATIONThe following steps can be used to reproduce this problem:
|
Additional reference words: buglist2.00 fixlist3.00 2.00 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |