FIX: A2138, A2036 or Hang, Init Nested Structure Array (94912)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
This article was previously published under Q94912 SYMPTOMS
An attempt to assemble code that initializes an array of nested structures
fails and the computer hangs and stops responding or the assembler produces
the following messages:
error A2138: invalid data initializer
error A2036: too many initial values for structure
RESOLUTION
To work around this problem, perform one of the following two steps:
- Remove the initialization from the structure declaration
-or-
- Remove the DUP operator and declare multiple nested structure fields
STATUS
Microsoft has confirmed this to be a problem in MASM versions 6.0, 6.0a,
and 6.0b for MS-DOS and OS/2. This problem was corrected in MASM version
6.1 for MS-DOS.
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbfix KB94912 |
---|
|