[Lazarus] Exception dialog

Michael Van Canneyt michael at freepascal.org
Tue Mar 17 09:38:59 CET 2009



On Mon, 16 Mar 2009, Hans-Peter Diettrich wrote:

> Michael Van Canneyt schrieb:
> 
> > Is there a reason why the default exception dialog has a cancel 
> > button to kill the application ?
> 
> An unhandled exception IMO is due to some software bug, which the user 
> cannot cure in any way.

That's a very restrictive definition of exception. An exception is
a way to stop the normal logic and flow of the program. In a GUI
application, you rely on the program's event loop to catch the 
exception (so it is definitely handled) and to show it to the 
user. If you don't want it to be shown, use the Abort exception.

Borland explains this use in detail in chapter 14 of the Delphi 7 
manual. 

Michael.



More information about the Lazarus mailing list