Solved

Process created using DEBUG_PROCESS flag dies when originating process dies.

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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 brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

726 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