Re: How to keep my com exe alive?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 8 Mar 2006 08:29:34 -0500
"shaji" <shajiparemmal@xxxxxxxxx> wrote in message
news:1141820689.598628.253300@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
1. I want to keep my com exe (just one ATL COM object - free threaded
- dual interface) running even after all the clients have quit. But I
don't want to make it a service.
Call _Module.Lock() to keep yourself alive. Call Unlock() when you
finally decide it's time to terminate.
2. When the exe shuts down, I want to save some internal data (in
fact, an stl list) onto the disk so that it can be read when next
time the exe starts up
Override PostMessageLoop in your CAtlExeModule-derived class.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: How to keep my com exe alive?
- From: shaji
- Re: How to keep my com exe alive?
- References:
- How to keep my com exe alive?
- From: shaji
- How to keep my com exe alive?
- Prev by Date: How to keep my com exe alive?
- Next by Date: Re: IDispEventImpl
- Previous by thread: How to keep my com exe alive?
- Next by thread: Re: How to keep my com exe alive?
- Index(es):
Relevant Pages
|
Loading