Solved

Process created using DEBUG_PROCESS flag dies when originating process dies.

Posted on 1997-02-10
1
265 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

773 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