Solved

Process created using DEBUG_PROCESS flag dies when originating process dies.

Posted on 1997-02-10
1
262 Views
Last Modified: 2013-12-04
My application uses CreateProcess with the DEBUG_PROCESS flag to launch a process and observe debug events from that process. Unfortunately, when I kill the originating process, the launched process dies with it.

How can I allow the launched process to proceed when I kill the originating process?
0
Comment
Question by:krmc
1 Comment
 
LVL 1

Accepted Solution

by:
donc earned 100 total points
ID: 1298943
You can't.  This is how the API is designed.  I worked on Win95 Kernel, and VC++ 5.0 debugger, and them's the facts.  Sorry.

Hacky solutions involve creating a new copy of the debugee, and copying over all relevant information (i.e. cloning the app before it dies), but that either requires cooperation between the two instances, or debug access to the _new_ app....
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now