ACC: Global Variable Limitations - Exceeds 64K Segment (141614)
The information in this article applies to:
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q141614
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
Depending on how variables are declared in Microsoft Access 2.0, they can
either end up in the Stack (approximately 64 kilobyte (KB) limit) or on the
Heap. When declaring variables as either Global or fixed-length strings,
the error message Out of Memory will occur if a 64 KB memory segment
limit is encountered. This is a cumulative total. In other words, the size
of variable X plus the size of variable Y cannot exceed the approximate 64
KB limit.
When declaring variables in Microsoft Access 7.0 and 97, they contain an
approximate 64 KB limit per fixed-length string, regardless of how the
variables are dimensioned (local or global). The error message Invalid
length for fixed-length string will occur if a fixed-length string exceeds
the approximate 64 KB limit. This is not a cumulative total. In other
words, variable X and variable Y can each be approximately 64 KB in size.
The actual size allowed per fixed-length string in Microsoft Access 7.0 and
97 is 65,526 bytes.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kberrmsg kbprb kbProgramming KB141614 |
---|
|