Board index » delphi » Application not terminating using "HALT" - HELP

Application not terminating using "HALT" - HELP

Hi,

I've got an appilcation written in Delphi 1.0 (running under Win 95). This app
calls ReportSmith Runtime and prints a report, when you quit the app it
seems to close as normal. However, if you hit CTRL+ALT+DEL and
get up the task list it is still listed. You then have to select it (which by
the way doesn't do anything) and then hit "End Task".

Any sugestions on how to exit this pogram correcting. I'm only calling "Halt"
at the moment.

Thanks in advance,
Nigel
n.po...@gmg.com.au

 

Re:Application not terminating using "HALT" - HELP


Quote

> Any sugestions on how to exit this pogram correcting. I'm only
> calling "Halt" at the moment.

Oh... Your'e only calling Halt!  :-))  Ok, I've stopped laughing,
and admit it's not your fault, but those lousy docs. Use the Close
method of the main form. Halt will halt your Pascal program, but
not your Windows program, if you get my meaning.

--
Bent Tranberg, Agder College, Grimstad
Grooseveien 36, 4890 Grimstad, Norway
e-mail: Bent.Tranb...@hia.no

Re:Application not terminating using "HALT" - HELP


Quote
In article <n.poole.147.019A1...@gmg.com.au>, n.po...@gmg.com.au (Nigel Poole) wrote:
>I've got an appilcation written in Delphi 1.0 (running under Win 95). This app
>calls ReportSmith Runtime and prints a report, when you quit the app it
>seems to close as normal. However, if you hit CTRL+ALT+DEL and
>get up the task list it is still listed. You then have to select it (which by
>the way doesn't do anything) and then hit "End Task".

>Any sugestions on how to exit this pogram correcting. I'm only calling "Halt"
>at the moment.

Terminate by closing all forms or by application.terminate  .  .  .  'Halt'
should be reserved for an emergency shutddown panic-stop condition only since
it does not allow the application to clean itself up in an orderly way :::
hence you see stranded parts of your application still present after it has
been halted.

cheers,
Tom

Thomas Ridgeway, Software Engineering -- ridge...@lbuddha.com
Multimedia Presentation Since 600 B.C.

Re:Application not terminating using "HALT" - HELP


Quote
n.po...@gmg.com.au (Nigel Poole) wrote:
>I've got an appilcation written in Delphi 1.0 (running under Win 95). This app
>calls ReportSmith Runtime and prints a report, when you quit the app it
>seems to close as normal. However, if you hit CTRL+ALT+DEL and
>get up the task list it is still listed. You then have to select it (which by
>the way doesn't do anything) and then hit "End Task".
>Any sugestions on how to exit this pogram correcting. I'm only calling "Halt"
>at the moment.

"Halt" is generally a bad way to exit a program!  For the most part, I
just call the Close method of my main form.  I have also been known to
us Application.Terminate.  

"Halt" just stops your program dead - destructors are not called, etc.

Ken
deg...@gti.net

Other Threads