Author: faridz
Date: Wed Oct 4 01:37:31 2006
New Revision: 452794
URL: http://svn.apache.org/viewvc?view=rev&rev=452794
Log:
2006-10-04 Farid Zaripov <[EMAIL PROTECTED]>
* THREAD_SAFE_EXCEPTIONS.cpp [_WIN32]: disable displaying
general protection fault message box
Modified:
incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp
Modified: incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp?view=diff&rev=452794&r1=452793&r2=452794
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp Wed Oct 4
01:37:31 2006
@@ -29,6 +29,13 @@
int main ()
{
+#if defined (_WIN32)
+ // disable displaying the critical-error-handler
+ // and general-protection-fault message boxes
+ // windows.h included in thread.h
+ SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
+#endif // _WIN32
+
pthread_t tid [2];
const unsigned N = sizeof tid / sizeof *tid;