🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Trapping an Access Violation

#3537
From: Denville Longhurst
Date: Fri, 26 May 2006 15:44
22 lines
1945 bytes
Hi

I have a slight problem with an application which throws an access violation 
very infrequently.  I have been unable to recreate it in the lab, and 
whenever it is reported to me, the reporter has no knowledge of the 
information contained in the access violation window - generally they just 
re-boot and walk away.

Can I trap an access violation in such a way that I can log the detail (eg 
violation at xxxx read of yyyy).  I can't think how to formulate the 
exxception handler, and where to put it so that it would be 
application-wide.  I note with interest that the try/catch block around 
Application->Initialize(); etc in the Project Source .cpp doesn't catch such 
an exception, since the application continues to run (albeit crippled) both 
during and following closure of the exception notification window.  Further, 
any timers continue to fire (as you would expect during the display of a 
form), in this case keeping a watch-dog alibe even though the program has 
effectively ceased functioning.

Many thanks,

Denville. 
Technical Details
Message-ID: <44772251$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7539b7c29665fa1,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Denville Longhurst" <Denville@metco.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Trapping an Access Violation
Date: Fri, 26 May 2006 15:44:18 -0000
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.8.26.0
Message-ID: <44772251$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1148658257 82.8.26.0 (26 May 2006 08:44:17 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail