The information in this article applies to:
SYMPTOMS
In the sample code below, the amount of space the compiler allocates for
struct A is incorrect. It is influenced by adding a member with data type
double to the nested struct in A even though A only declares a pointer to
this nested struct and not an instance of the struct itself. If you
uncomment the line with the double member, the code will produce different
results. The size of struct A will be reported as being larger.
RESOLUTIONThe problem is very specific to code similar to that below, so there are no generic workarounds. It may be necessary to change the data type of the member to something other than a double. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ version 5.0. MORE INFORMATIONSample Code
Additional query words: kbVC400bug
Keywords : kbCodeGen kbVC500fix |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |