Using TApplicationEvent component event OnException
Apply try .. except
  
try
except
  on e: exception do
    Application.OnException(self, e);  // into TApplicatoinEvent.OnException event
Posted by Revers Tuna
,