madExcept does not take in to account conditional defines when it adjusts the uses clause for an application.
In the application.pas file i have two sets of uses, one for SQL, one for if SQL is undefined (as follows). madExcept always updates the first uses clause regardless of the defines.
program Application;
{$IFDEF SQL}
uses
LocaleInfo,
madExcept,
madLinkDisAsm,
madListHardware,
madListProcesses,
madListModules,
Forms,
SysUtils,
MainUt in 'MainUt.pas' {MainFm},
<forms..}
{$ENDIF}
{$IFNDEF SQL}
uses
madExcept,
madLinkDisAsm,
madListHardware,
madListProcesses,
madListModules,
Forms,
SysUtils,
<forms..>
{$ENDIF}
{$R *.res}
begin
//Code here....
end.