I'm just evaluating madExcept (using Delphi XE8) and when enabling/disabling the integration into my project, I saw that your exception dialog is only displayed when compiled in debug mode. At first I thought that this might be dependant of some Linker/Compiler switches but after a little bit of investigation I found the problem in the way my project files are made:
Code: Select all
program SomeProggi;
{$I ..\..\source\switches.inc}
{$R *.dres}
uses
{$IfNDef RELEASE} FastMM4, {$EndIf}
Forms,
...
Now when enabling madExcept i get:
Code: Select all
{$IfNDef RELEASE} FastMM4, madExcept, madLinkDisAsm, madListHardware, madListProcesses, madListModules, {$EndIf}
After coming up with this, I changed the code manually to:
Code: Select all
uses
{$IfNDef RELEASE} FastMM4, {$EndIf}
madExcept, madLinkDisAsm, madListHardware, madListProcesses, madListModules,
Forms,
Code: Select all
uses
{$IfNDef RELEASE} FastMM4,
Forms,
All that said, maybe there is another way to handle unit insertion?
Maybe place it behind any conditional defines (somewhere outside of them) and don't remove the $EndIf when disabling.