I try to run this simple example program, to understand how functions "try..exept..finnaly" commands, but my Lazarus v 0.9.30 says:
El proyecto project1 ha lanzado una excepción de la clase 'External: SIGFPE'
the program is:
uses sysutils;
var
number, zero : Integer;
begin
// Try to divide an integer by zero - to raise an exception
Try
zero := 0;
number := 1 div zero;
WriteLn('number / zero = '+IntToStr(number));
except
on E : Exception do
WriteLn(E.ClassName+' error raised, with message : '+E.Message);
On E : EDivByZero do
WriteLn('Div by zero error : '+E.Message);
end; readln;
end.
So, Lazarus terminate the program and there is NO WAY to re-direct error to "except" block
thank you for answer