madExcept, services and HandleException
Posted: Tue Jun 26, 2018 12:25 am
Hello,
I wonder what's the status of madExcept and Windows Services?
I have read some other posts that instruct to disable the showing of the report box in case it is a Windows service (I am talking of non-interactive ones), but I don't know if this has changed lately? I am guessing it doesn't, as I think I have some cases where after an exception things went bad as the service was waiting for the exception box to be closed.
I have several places in my apps where I call directly HandleException. I do this to avoid the "unhandled" exception (it is being handled after all) and to be able to log the details and display it to the user. I had the idea that in the case of services the box would not be displayed, only the exception saved, but I think some of the strange problems I've got are because MadExcept::HandleException is actually displaying a dialog.
If that's the case then it's ok, just need to disable it and that's it. I guess this is possible from within the code itself, using the MESettings() function?
Thanks!
I wonder what's the status of madExcept and Windows Services?
I have read some other posts that instruct to disable the showing of the report box in case it is a Windows service (I am talking of non-interactive ones), but I don't know if this has changed lately? I am guessing it doesn't, as I think I have some cases where after an exception things went bad as the service was waiting for the exception box to be closed.
I have several places in my apps where I call directly HandleException. I do this to avoid the "unhandled" exception (it is being handled after all) and to be able to log the details and display it to the user. I had the idea that in the case of services the box would not be displayed, only the exception saved, but I think some of the strange problems I've got are because MadExcept::HandleException is actually displaying a dialog.
If that's the case then it's ok, just need to disable it and that's it. I guess this is possible from within the code itself, using the MESettings() function?
Thanks!