Mfc application killed when windows service killed
Hi,
I have written a window XP service. My windows XP service launches an mfc window application. I am using ShellExecute API to launch mfc window app from service at service startup. When I kill/stop my service from task manager (TM->ProcessTab->RightClick->EndProcess) my window application also getting killed. I want that even if my service got killed/stopped, my mfc window application should not get killed. Is it possible?
Thanks a lot in Adv.
~Anupam
Re: Mfc application killed when windows service killed
You tell us if it's possible. :) Who knows your app better than you do?
Did you ever attempt to understand what in fact happens in your app? Does it crash on something related to your service, like shared memory, pipe or socket? Or actually gets terminated by OS? Did you try to launch it manually and see if it survives in this case?