Ignoring specifing Exceptions

delphi package - automated exception handling
Post Reply
Han312
Posts: 48
Joined: Mon Mar 14, 2016 3:49 pm

Ignoring specifing Exceptions

Post by Han312 »

We are getting sometimes exceptions like

Code: Select all

exception number                : 1
exception class                 : EAccessViolation
exception message               : Zugriffsverletzung bei Adresse 0000000050AF82C8 in Modul 'nvoglv64.DLL'. Lesen von Adresse 0000000000000013.
Is it possible to ignore exceptions from module 'nvoglv64.DLL' and filter it out?
madshi
Site Admin
Posts: 10338
Joined: Sun Mar 21, 2004 5:25 pm

Re: Ignoring specifing Exceptions

Post by madshi »

Hi there,

you can register an exception handler by calling "RegisterExceptionHandler(YourHandler, stDontSync, epQuickFiltering)" and then in your handler you can check the properties for the "exceptIntf: IMEException" interface and if you want to filter out an exception, simply set "handled := true".

For example, you could check the Exception message to see if "nvoglw64.DLL" is listed there. Or maybe there's a better way. I can't say because you only provided a small part of the bug report.
Han312
Posts: 48
Joined: Mon Mar 14, 2016 3:49 pm

Re: Ignoring specifing Exceptions

Post by Han312 »

Thanks. It works that way.
I change the subject of the mail and filter the bug report later.
Post Reply