Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: shajithchandranPosted on 2007-01-22 at 06:52:03ID: 18365565
May be you can try this, Iam not sure how helpful this be.
1. When the application is started for the first time, let the application spawn a new process. This new process will just be running in a infinite while loop. Let the new process create a shared memory region. The idea is to keep this new process as simple as possible so that it will never crash.
2. The application can attach to this shared memory. And can be used for logging.
3. When the application crashes, the shared memory region will be not destroyied since the other process is still attached.
4. When the application is restarted, it will check if the process is running. If yes, then if can again attach to the shared memory and analyse the previous logs.
Shaj