FIX: GPF/UAE with Huge Array Size as Multiple of 64K Bytes (98990)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
This article was previously published under Q98990 SYMPTOMS
A general protection (GP) fault or Unrecoverable Application Error (UAE)
may result when you define a huge array using DIM, REDIM, or GLOBAL and
specify a size that's a multiple of 64K.
CAUSE
Huge arrays that cause a GP fault or UAE are a(n), where n is 4094 + 4095*i
for i = 1 to 7 (assuming 16-byte element sizes). The problem occurs when
the array plus its overhead fills a space of 128K and each increment of 64K
exactly.
WORKAROUND
To work around the problem, add or subtract one element in the array.
STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic
version 2.0 for Windows. This bug was corrected in Microsoft Visual
Basic version 3.0 for Windows.
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | kbbug kbfix KB98990 |
---|
|