stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r452794 - /incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp
Date Wed, 04 Oct 2006 08:37:32 GMT
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 <faridz@kyiv.vdiweb.com>

	* 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;



Mime
View raw message