Restart application under certain condition

delphi package - automated exception handling
Post Reply
ertank
Posts: 14
Joined: Sat Feb 17, 2024 8:42 pm

Restart application under certain condition

Post by ertank »

Hello,

madExcept design time setting is not to restart application in any way.
There is this specific exception which only resolve if application is restarted.
Is it possible to programmatically make madExcept to restart the application using MadExceptExceptionHandle if this specific exception occurs?
Bug report should still be send. This will be a temporary workaround not to block users until actual problem is fixed.

Thanks & Regards,
Ertan
madshi
Site Admin
Posts: 10775
Joined: Sun Mar 21, 2004 5:25 pm

Re: Restart application under certain condition

Post by madshi »

Sure, you can do that. For example, you could use RegisterExceptActionHandler() to be notified about when bug report sending has completed, and then check the "exceptIntf" interface if the exception is the one you want to restart your application for.

http://help.madshi.net/madExceptUnit.ht ... ionHandler

And then you can call "exceptIntf.RestartApplication".
ertank
Posts: 14
Joined: Sat Feb 17, 2024 8:42 pm

Re: Restart application under certain condition

Post by ertank »

I couldn't be sure.
Which TExceptAction should I use for checking completion of sending automated background email?
madshi
Site Admin
Posts: 10775
Joined: Sun Mar 21, 2004 5:25 pm

Re: Restart application under certain condition

Post by madshi »

eaSendBugReport3
Post Reply