?
Solved

Process created using DEBUG_PROCESS flag dies when originating process dies.

Posted on 1997-02-10
1
Medium Priority
?
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
donc earned 200 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

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…
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

752 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