The information in this article applies to:
SYMPTOMS
When you create and destroy ios-derived classes in multiple threads, an
access violation can occur. CAUSEA static member ios::fLockcInit is used to hold reference counts for a critical section used in the multi-threaded C Run-Time Library to provide synchronization for the ios class. Ios::fLockcInit is modified without synchronization during construction and destruction of ios thereby allowing a race condition. The critical section reference counted by ios::fLockcInit may be destroyed more than once or used after it is destroyed. RESOLUTION
For Visual C++ 5.0, use the Standard C++ Library instead of the old
iostream library. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONios-derived classes include: iostream, istream, ostream, fstream, ifstream, ofstream, strstream, istrstream. Additional query words: kbCRT kbVC400bug kbVC410bug kbVC420bug kbVC500bug kbDSupport kbdss
Keywords : |
Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |