The beggars should not have removed the fail function that used to be in BP7 - it used to allow a graceful kill of the object.
I sometimes bracket the contents of the onclose/ondestroy with try except and junk the exception to avoid the above. I have often wondered if I should do this as standard. At least the user will see a graceful degradation of the app.... instead of having to restart it.
Neven MacEwan wrote:
Hi
I'm sure someones asked this question before but.....
It seems trad to make the 'application' owner of Dialogs and forms
if form := TForm.Create(Application);
Is this strictly necesary? reason being that if anything fails during the
forms destructuction, the application wont allow another form of the same class and also it results in AV on the exit of the app
opinions please?
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
