Re: How to shut down a running application

From: Steve Forbes (ozmosys_at_spamfreeoptusnet.com.au)
Date: 07/31/04


Date: Sat, 31 Jul 2004 16:00:14 +1000

Hi Andrew,

You seem to have entirely missed my post (was first reply in thread)
explaining how to do it with WM_CLOSE message ..

Best regards

Steve

"Andrew Diabo" <aadiabo@ix.netcom.com> wrote in message
news:410ae14a@newsgroups.borland.com...
> Hi Bob,
>
> How do you recommend doing this in code safely?
>
> Thanks again.
>
> Andrew
>
> "Bob" <dont_write@dont_call.com> wrote in message
> news:410a7d83$1@newsgroups.borland.com...
> > > Then call TerminateProcess(ProcHandle, DWORD(-1));
> >
> > TerminateProcess should not be used until after you "ask" the
application
> to
> > close with a WM_QUIT or WM_CLOSE message. It can result in lost system
> > memory, and prevents programs from cleaning up gracefully (i.e.
returning
> > window and graphic handles, etc.)
> >
> >
>
>



Relevant Pages

  • Re: Internet explorer
    ... ssg MS-MVP ... > link that requires a new window to open, ... > Thanx in advance, Steve ...
    (microsoft.public.windowsxp.general)
  • Re: What does "COmmit Charge 691m/1250M" mean
    ... > at the bottom of the application window in the task manager? ... > Best Regards ...
    (microsoft.public.windowsxp.help_and_support)
  • What does "COmmit Charge 691m/1250M" mean
    ... at the bottom of the application window in the task manager? ... Best Regards ... Steve ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: OE Securiaty
    ... Thanks Steve, ... Now I must decide if I am competent enough...think I am but one never knows, ... > attachments in mail. ... > Regards Steve. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: How Was Share?
    ... Regards, ... Steve ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)