CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Posts
    1

    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

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    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?
    Best regards,
    Igor

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured