Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 4009 invoked from network); 25 Jun 2007 22:28:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2007 22:28:43 -0000 Received: (qmail 86930 invoked by uid 500); 25 Jun 2007 22:28:47 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 86876 invoked by uid 500); 25 Jun 2007 22:28: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 86861 invoked by uid 99); 25 Jun 2007 22:28:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 15:28:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 15:28:42 -0700 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l5PMSGdL021911 for ; Mon, 25 Jun 2007 22:28:16 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 25 Jun 2007 16:27:04 -0600 Message-ID: <46804215.5040102@roguewave.com> Date: Mon, 25 Jun 2007 16:30:45 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: Convert MSVC CRT debug reports to rwtest driver debug reports References: <7BDB2168BEAEF14C98F1901FD2DE64389D6B99@epmsa009.minsk.epam.com> In-Reply-To: <7BDB2168BEAEF14C98F1901FD2DE64389D6B99@epmsa009.minsk.epam.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jun 2007 22:27:04.0462 (UTC) FILETIME=[F51C6AE0:01C7B777] X-Virus-Checked: Checked by ClamAV on apache.org Farid Zaripov wrote: > In some tests in debug mode GUI popups appear. > We can disable this popups by using _CrtSetReportMode(, > _CRTDBG_MODE_DEBUG), but I think > it would be useful to convert them into the rwtest debug reports > (rw_warn(), rw_error(), rw_assert()). > This conversion can be made by installing custom hook function. Sounds reasonable, but I'd like to know a little bit more about what types of errors we're dealing with here. Which of the three types of diagnostics does your patch convert them to? I think rw_error() would be appropriate for undefined behavior like memory corruption detected by the CRT, etc. What other types of errors cause these popups? > > And also MSVC8 CRT performs parameter checking with invoking Dr.Watson > tool (the result is GUI > popup) in case the invalid parameter was passed to the CRT function. I > suggest to convert this popups > to the rw_note() reports (or maybe rw_error()). In terms of the severity, rw_note() is quite different from rw_error(), so it's important to understand what types of errors we're dealing with. Can you give more detail about these invalid parameter errors, or a few examples? > > The proposed patch below: It would be helpful to see a ChangeLog entry for the patch. Thanks Martin