Bryan Smith mentioned this to Gary Weinfurther:
BS> Can you please define "exit properly" a bit more closely ? Is
properly"
BS> anything better than a GPF, e.g does "halt" constitute a proper exit ?
Or
BS> does it have to be at least "application.terminate" ?
Halt (and any GPF or program crash) will stop the program immediately and do
no cleanup of your program's resources. I strongly suggest avoiding this if
possible.
Application.Terminate will attempt to close things down somewhat gracefully,
but even it won't call all the proper event handlers when closing forms.
The preferred way to terminate a Delphi application is to close the main
rm.
...Gary
--- GoldED 2.41
---------------
* Origin: Nobody expects the Flying Circus BBS! (1:2410/905)
|