Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 31972 invoked from network); 3 Oct 2006 15:33:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2006 15:33:46 -0000 Received: (qmail 34034 invoked by uid 500); 3 Oct 2006 15:33:46 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 33973 invoked by uid 500); 3 Oct 2006 15:33:46 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 33962 invoked by uid 99); 3 Oct 2006 15:33:46 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2006 08:33:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [208.30.140.160] ([208.30.140.160:58586] helo=moroha.quovadx.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id E1/C2-08153-7D282254 for ; Tue, 03 Oct 2006 08:33:43 -0700 Received: from qxvcexch01.ad.quovadx.com (qxvcexch01.ad.quovadx.com [192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id k93FWgB7022842 for ; Tue, 3 Oct 2006 15:32:42 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 3 Oct 2006 09:33:48 -0600 Message-ID: <452282E2.1070008@roguewave.com> Date: Tue, 03 Oct 2006 09:33:54 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: [PATCH] THREAD_SAFE_EXCEPTIONS.cpp References: <45227FF9.1050304@kyiv.vdiweb.com> In-Reply-To: <45227FF9.1050304@kyiv.vdiweb.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Oct 2006 15:33:48.0204 (UTC) FILETIME=[51EBF6C0:01C6E701] X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Farid Zaripov wrote: > Attached is a patch to disable displaying general protection fault > message box in test on Windows (singlethreaded configurations). Looks good, thanks! Martin PS If this is needed in more than one test we might want to introduce a common header with a function that handles it (conditionally for Windows). Martin > > Farid. > > > ------------------------------------------------------------------------ > > Index: THREAD_SAFE_EXCEPTIONS.cpp > =================================================================== > --- THREAD_SAFE_EXCEPTIONS.cpp (revision 452510) > +++ THREAD_SAFE_EXCEPTIONS.cpp (working copy) > @@ -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;