I have built an embedded VC application built for a custom made
product. The application runs perfectly after few hours or few minutes
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.