OnShowException lazarus / 8-Other ---------------------------------------------------------------------- wimpie · 2009-06-03 08:19 Hi I want to prevent my GUI application from displaying the exception (and stopping execution) when a problem occurs and rather log the message to syslog. I thought about reassigning OnShowException to my own procedure to handle this but I can't find much documentation on OnShowException. Am I on the right track or is there a better way to solve this problem? Are there any thing I should be aware of when doing this? ---------------------------------------------------------------------- Paul Ishenin · 2009-06-03 14:24 Assign your own event handler to the Application instance. Application.OnException := @MyExceptionHandler; ... procedure TMyForn.MyExceptionHandler(Sender : TObject; E : Exception); begin   LogToFile(E.ClassName, E.Message, ...); end; ---------------------------------------------------------------------- wimpie · 2009-06-03 15:06 Thanks