Exceptions not caught outside of development enviroment

delphi package - automated exception handling

Exceptions not caught outside of development enviroment

Postby SeanSmith » Thu Jun 27, 2019 12:25 am

I maintain a few Dephi applications (written in XE2 and XE3), and we've been using madExcept for a few years without any issues.

A few months ago, I released new versions of the products I work on and since then madExcept has not caught a single exception when the executables are run outside of the virtual machines I use for development.

I've tried removing/re-adding madExcept from the IDE, removing/re-adding from the project, changing build configurations (release vs debug), order of conditional defines, inheriting conditional defines, etc, to no avail. Exceptions are always caught in the development enviroment, but never caught outside.

I have tried creating a test project, in which madExcept is correctly catching exceptions on inside and outside the development, so the issue seems to be confined to the existing projects. I'm not really sure where to go from here, so any assistance would be greatly appreciated.
SeanSmith
 
Posts: 2
Joined: Sun Jun 16, 2019 11:57 pm

Re: Exceptions not caught outside of development enviroment

Postby iconic » Thu Jun 27, 2019 2:30 am

Which version of madExcept are you using and also can you upload a small test project (hollow out your maintained project that doesn't work?)

--Iconic
iconic
Site Admin
 
Posts: 930
Joined: Wed Jun 08, 2005 5:08 am

Re: Exceptions not caught outside of development enviroment

Postby SeanSmith » Thu Jun 27, 2019 2:42 am

Thanks for the response, but I've actually just stumbled upon the issue purely by accident.

I had recently set up post-build event to copy the executable into another directory for creating installs. As I've come to understand, madExceptPatch.exe is also run as a post-build event as well but the post-build events in the IDE are executed before the madExcept patch can be applied.

I've resolved the issue by removing my post-build events as I can work without them.
SeanSmith
 
Posts: 2
Joined: Sun Jun 16, 2019 11:57 pm

Re: Exceptions not caught outside of development enviroment

Postby iconic » Thu Jun 27, 2019 5:15 pm

Good catch :D Glad you were able to resolve your issue

--Iconic
iconic
Site Admin
 
Posts: 930
Joined: Wed Jun 08, 2005 5:08 am


Return to madExcept

Who is online

Users browsing this forum: No registered users and 10 guests

cron