Re: How to shut down a running application
From: Steve Forbes (ozmosys_at_spamfreeoptusnet.com.au)
Date: 07/31/04
- Next message: Steve Moss: "Re: NexusDB Memory Manager version 2 released"
- Previous message: Hannes Danzl[NDD]: "Re: NexusDB Memory Manager version 2 released"
- In reply to: Andrew Diabo: "Re: How to shut down a running application"
- Next in thread: Andrew Diabo: "Re: How to shut down a running application"
- Reply: Andrew Diabo: "Re: How to shut down a running application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.)
> >
> >
>
>
- Next message: Steve Moss: "Re: NexusDB Memory Manager version 2 released"
- Previous message: Hannes Danzl[NDD]: "Re: NexusDB Memory Manager version 2 released"
- In reply to: Andrew Diabo: "Re: How to shut down a running application"
- Next in thread: Andrew Diabo: "Re: How to shut down a running application"
- Reply: Andrew Diabo: "Re: How to shut down a running application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|