🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #53

Unable to display MessageBox after exception

#53
From: Adriano Coser
Date: Fri, 22 Aug 2008 11:28
21 lines
1756 bytes
Hello,

I've set a callback function with SetUnhandledExceptionFilter.

When an exception occours my function is called, but the MessageBox I
want to display doesn't show up under certain circunstances (when a
"division by zero" exception occours, for example). The program simply
terminates when calling MessageBox.

long __stdcall FinalExceptionHandler(
   PEXCEPTION_POINTERS ExceptionInfo
)
{
  MessageBox(0, "My message", "My message", MB_OK);
  return EXCEPTION_EXECUTE_HANDLER;
}

Thanks in advance for any help.

Regards,
Adriano
Technical Details
Message-ID: <2bb208cc-ebc2-480d-b30f-c6bcfbe57bf1@l42g2000hsc.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!l42g2000hsc.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,aa6cc865a8a9fdbd,start
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!l42g2000hsc.googlegroups.com!not-for-mail
From: Adriano Coser <coser@altoqi.com.br>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Unable to display MessageBox after exception
Date: Fri, 22 Aug 2008 04:28:25 -0700 (PDT)
Organization: http://groups.google.com
Lines: 21
Message-ID: <2bb208cc-ebc2-480d-b30f-c6bcfbe57bf1@l42g2000hsc.googlegroups.com>
NNTP-Posting-Host: 201.34.147.71
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1219404506 17303 127.0.0.1 (22 Aug 2008 11:28:26 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 22 Aug 2008 11:28:26 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: l42g2000hsc.googlegroups.com; posting-host=201.34.147.71; 
 posting-account=CyOrdQkAAABbyECnua4cbpVwUDgghPrL
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
 CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)