Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming! |
⤷ Don't display application errors
Use SetErrorMode function with SEM_FAILCRITICALERRORS parameter. It allows your application don't display error messages, which can appears during executing of your application. In this example, you won't see error "Division by zero".
procedure TForm1.Button1Click(Sender: TObject);
var
i: Real;
begin
SetErrorMode(SEM_FAILCRITICALERRORS);
i:=1/0;
end;
-
More for developers