How to use it with DLLs?
Posted: Tue Jun 26, 2018 2:52 pm
Hi. We have a large application (exe file). It loads tons of "modules" (DLLs).
We don't want the main app to crash if one of the modules crashes. Therefore, we trap all errors inside the module (DLL) so they never propagate to the main app.
We are testing now to see if we could use MadShi Except into this project (we will require 3 licenses).
How to do it with MINIMAL impact on code? The code is 'reviewed' so we would like to have no changes or as little changes as possible.
The problem is that we would need to insert a line of code to re-raise the exception for EACH Try/Except in EACH module; and also a compiler directive to turn this line of code off when we compile in 'Release' mode. And we have lots of try/except into our modules.
Is there a better way to do it?
Oh... I should mention that we are using C++ Builder 2010 (we are going to upgrade the project to Tokyo but not in the near future).
We don't want the main app to crash if one of the modules crashes. Therefore, we trap all errors inside the module (DLL) so they never propagate to the main app.
We are testing now to see if we could use MadShi Except into this project (we will require 3 licenses).
How to do it with MINIMAL impact on code? The code is 'reviewed' so we would like to have no changes or as little changes as possible.
The problem is that we would need to insert a line of code to re-raise the exception for EACH Try/Except in EACH module; and also a compiler directive to turn this line of code off when we compile in 'Release' mode. And we have lots of try/except into our modules.
Is there a better way to do it?
Oh... I should mention that we are using C++ Builder 2010 (we are going to upgrade the project to Tokyo but not in the near future).