PRB: C4040 May Occur on Declaration of Huge ArrayLast reviewed: July 17, 1997Article ID: Q34170 |
6.00 6.00a 6.00ax 7.00 | 6.00 6.00a | 1.00 1.50
MS-DOS | OS/2 | WINDOWSkbtool kbprb The information in this article applies to:
SYMPTOMSAn attempt to declare a huge array fails and the compiler generates one of the following messages:
warning C4040: near/far/huge on identifier ignored -or- warning C4040: memory attribute on 'identifier' ignored CAUSEThe application attempts to dynamically allocate a huge array on the stack. Far and huge arrays must be declared as global or static variables.
RESOLUTIONModify the source code to allocate far or huge arrays as global variables or as static variables.
|
Additional reference words: 1.00 1.50 6.00 6.00a 6.00ax 7.00 8.00 8.00c
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |