Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 8051 invoked from network); 10 Aug 2006 17:51:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2006 17:51:14 -0000 Received: (qmail 40542 invoked by uid 500); 10 Aug 2006 17:51:11 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 40494 invoked by uid 500); 10 Aug 2006 17:51:11 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 40483 invoked by uid 99); 10 Aug 2006 17:51:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 10:51:11 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rdasgupt@gmail.com designates 66.249.82.228 as permitted sender) Received: from [66.249.82.228] (HELO wx-out-0506.google.com) (66.249.82.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 10:51:03 -0700 Received: by wx-out-0506.google.com with SMTP id s13so501267wxc for ; Thu, 10 Aug 2006 10:50:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=C5FF4Ha//cHXloex1FN942WTLlaK4jlCQmSFUJReW5aLHqHJWwp5bc+AzK7a8C/Bvl5vp+3YcilZqi/meLHEt0ZEemobcORNJ+bki4/G8M8bKEFhIGfMCGKDmSrzviWj4ODKL+24tGWFzCNYwKGkjPltKhbxhL4PP2dWJXcN5Hk= Received: by 10.78.140.17 with SMTP id n17mr1568234hud; Thu, 10 Aug 2006 10:50:32 -0700 (PDT) Received: by 10.78.118.5 with HTTP; Thu, 10 Aug 2006 10:50:31 -0700 (PDT) Message-ID: <51d555c70608101050l7eaa074ak3a46937268fcca82@mail.gmail.com> Date: Thu, 10 Aug 2006 10:50:31 -0700 From: "Rana Dasgupta" To: harmony-dev@incubator.apache.org Subject: Re: [general] platform support In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5456_2567546.1155232231877" References: <26c14c2a0608091025p2ef47151pcdccab4a66851305@mail.gmail.com> <26c14c2a0608100330r2ecfc890m3a52fb323ac6842e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_5456_2567546.1155232231877 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Mikhail, As far as I know, SetUnhandledExceptionFilter was introduced as a backdoor method in in Win2K SP4 to get around the problem that the SEH handlers are limited to the frame and not process wide. It does handle problems like NPE and AV, but as you point out, it works by hijacking the first and last chance debugger handlers. So, unlike VEH which are fully functional when debugging, these SetUnhandled...filters are not visible when debugging. I also believe that they execute in the context of the current thread, which means that they are not so good to handle stack corruption, SOE etc. which we are currently using VEH. Since one does not expect them to be used on the newer Windows boxes, the .Net framework overwrites them ...which means that any process that loads a Microsoft dll that has any Microsoft managed code in it ( and many do ), is at a risk that the SetUnhandled.. may or may not work. I think that SetUnhandled..was a great(probably only ) solution on the Win2K boxes, but VEH was put in place to solve some of its limitations. The bottom line is that one needs to experiment with this on several Windows boxes before we know how good or bad it is. I myself don't have a lot of experience with it. Thanks, Rana On 8/10/06, Mikhail Fursov wrote: > > >**Using "SetUnhandledExceptionFilter" API call we can handle hardware NPE > >for Win2k too. > >The only problem is debbuging of applications with exception filter > >installed. AFAIK debugger will catch all of these events. > > ------=_Part_5456_2567546.1155232231877--