The change you added to OutputDebugMessage does not re-raise the original exception. And it is very confusing behavior of a innocent looking function name. I notice you do call it outside of exception handler, also.
Code: Select all
procedure OutputDebugMessage(const aMessage : string);
const
DEFAULT_LINE = 1;
begin
{$IFDEF DEBUG}
OutputDebugString({$IFDEF DELPHI12_UP}PWideChar{$ELSE}PAnsiChar{$ENDIF}(aMessage + chr(0)));
if (GlobalCEFApp <> nil) and GlobalCEFApp.LibLoaded then
CefLog('CEF4Delphi', DEFAULT_LINE, CEF_LOG_SEVERITY_ERROR, aMessage);
{$ENDIF}
if (GlobalCEFApp <> nil) and GlobalCEFApp.ReRaiseExceptions then
raise Exception.Create(aMessage);
end;
Code: Select all
except
on e : exception do
begin
OutputDebugMessage('TCefApplication.CreateInternalApp error: ' + e.Message);
if ReRaiseExceptions then
raise;
end;
end;
Code: Select all
{$IFDEF NO_EXCEPTION_SILENCE}
finally
end;
{$ELSE}
except
on e : exception do
OutputDebugMessage('TCefApplication.MultiExeProcessing error: ' + e.Message);
end;
{$ENDIF}