windows GUI application is terminated

windows GUI application is terminated from Initinstance() function
before starting message loop. This exe is launched using WinExec() API
by the another process started at windows startup.
This problem is happened rarely on laptop machine. I reviewed the code
regarding overflow, variable corruption etc but it is ok.
Also, trying to find the exact reason using log file but not getting
exact return path. Each time the logs are different for this problem.

In Initinstance(), creating the one simple thread which is waiting on
event. After creating thread, the modeless dialog is created using
create() API. Finally, message loop for the dialog. This dialog is always
invisible.

This windows application is terminated when the system is shutdown or
logoff the user.
[823 byte] By [sunil pagare] at [2007-11-20 11:31:55]
# 1 Re: windows GUI application is terminated
. . and what is your question ?
Skizmo at 2007-11-10 22:25:07 >