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
Solved

Process created using DEBUG_PROCESS flag dies when originating process dies.

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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