I have built an embedded VC application built for a custom made
product. The application runs perfect for few hours or few minutes,
but after that it closes by itself.

I want to find out the reason why it is closing itself. I tried
building the application in debug mode. Even then it is not throwing
any exception.

Is there a way to capture the r