Oh, good point to discuss about the use of exceptions. I use exceptions only for really "unexpected" things. That a user will sometimes input wrong data must be expected by a programmer so I do not treat this as an exception.
With unexpected things I mean all the things that are outside my code. e.g. try FExcel := GetActiveOleObject('Excel.Application'); except //do something end; ________________________________ Von: Michael Van Canneyt <michael.vancann...@wisa.be> An: Lazarus mailing list <lazarus@lazarus.freepascal.org> Gesendet: Montag, den 16. März 2009, 14:14:56 Uhr Betreff: [Lazarus] Exception dialog Hello, Is there a reason why the default exception dialog has a cancel button to kill the application ? We often use an exception to signal wrong entry of data or so, because it stops all further processing. If the user then uses the cancel button, the program is simply ended, which is not what we (or better: the users) want. And I imagine many others use this technique. I have overridden the OnException handler of TApplication, so it's no longer a problem, but I was curious as to why this is done like this by default ? Michael. _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
_______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus