[Lazarus] try..except doesn't trap exception in Form.Showmodal

Luca Olivetti luca at wetron.es
Fri Dec 13 10:26:25 CET 2019


Hello,

I don't remember if I asked this previously, but it always bugs me.

If I do


try
    AForm.ShowModal
except
....
end;


the exceptions eventually raised in AForm aren't caught by the above 
try..except, they always show the default error dialog.
I have to use Application.OnException to catch those.
Why?

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007


More information about the lazarus mailing list