> I just noticed this after I replied. Never callHelen, this is from Delphi help:
> application.terminate from
> within the application. Call Close on the Main form or datamodule unit.
Terminate method (TApplication)
Ends application execution.
void __fastcall Terminate(void);
Call Terminate to end the application programmatically. By calling Terminate
rather than freeing the application object, you allow the application to
shut down in an orderly fashion.
Terminate calls the Windows API PostQuitMessage function to perform an
orderly shutdown of the application. Terminate is not immediate.
Terminate is called automatically on a WM_QUIT message and when the main
.. Sounds like it's an orderly way of forcing your application to shut down.
Where is it written that this method should not be used?