BUG: _wsetlocale Is Not Threadsafe (304497)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Editions 6.0
This article was previously published under Q304497 SYMPTOMS
A heap corruption can occur if _wsetlocale is called simultaneously from multiple threads.
CAUSE_wsetlocale does not synchronize access to a local static variable, outwlocale.
RESOLUTION
To work around this, you must synchronize calls to _wsetlocale.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
| Modification Type: | Major | Last Reviewed: | 10/22/2002 |
|---|
| Keywords: | kbbug KB304497 |
|---|
|