Home Dashboard Directory Help

std::use_facet interferes with subsequent call to FatalExit by Jonathan Jones MW


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 568054
Opened: 6/16/2010 7:57:36 AM
Access Restriction: Public
User(s) can reproduce this bug


There seems to be an apparent bug in the use_facet routine when:
1) Compiling using Visual Studio 2008 on Windows 7
2) Linking with the dynamic CRT

The result is that a subsequent call to FatalExit ignores the exit code passed into it. The process always exits with a 0 exit code. This seems to imply some sort of subtle corruption as a result of calling use_facet.

The most common way to bump into this problem is to write narrow character strings (e.g. char*) to wide character output streams (e.g. std::wcout), which entails the use of use_facet.
Sign in to post a comment.
Posted by Microsoft on 3/2/2011 at 8:47 PM

Thanks for reporting this bug. We've fixed it, and the fix will be available in VC11.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 6/17/2010 at 12:40 AM
Thanks for your feedback.

We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.
These specialized experts will follow-up with your issue.
Posted by Microsoft on 6/16/2010 at 5:03 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.