The information in this article applies to:
SYMPTOMSThe API Text Viewer definition for CRITICAL_SECTION is incorrect and will cause an access violation or corrupt the memory directly following any variables of this type. CAUSEThe API Text Viewer defines CRITICAL_SECTION as follows:
If you use this definition, you may receive access violations or you may
notice that the variables declared directly after a critical section are
overwritten or corrupted when you call any of the critical section APIs.
RESOLUTIONThe following is a proper definition for CRITICAL_SECTION:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONYou should never access the members of the CRITICAL_SECTION structure directly. An object of this type is designed to be manipulated through the following Win32 APIs:
For more information, refer to the MSDN documentation for critical
sections.
Additional query words:
Keywords : kbKernBase kbThread kbVBp400bug kbVBp500bug kbVBp600bug kbGrpVB |
Last Reviewed: February 1, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |