The information in this article applies to:
SYMPTOMSInline assembly code that uses [ebp] to gain access to arguments or local variables on the stack results in this error:
CAUSEWhen an argument is passed to a function, or a local variable is declared in a function, the argument or variable is placed on the stack, and is already referenced in terms of [ebp]. When [ebp] is used explicitly to reference that argument or variable as in ccb[ebp], for example, the compiler adds [ebp] again, resulting in an illegal address. The compiler fails to catch this as a meaningful error, and instead generates error C1001. RESOLUTION
Do not attempt to gain access to stack arguments or variables in terms of
[ebp].
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSample Code
Additional query words: kbVC400bug
Keywords : kbCompiler kbVC200bug kbVC210bug kbVC220bug kbVC400bug kbVC410bug kbVC420bug kbVC500bug kbVC600bug |
Last Reviewed: May 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |