Re: Create Thread problem
- From: "Chris Becke" <chris.becke@xxxxxxxxx>
- Date: Fri, 25 Aug 2006 11:00:59 +0200
"Saurav" <ursaurav@xxxxxxxxx> wrote in message
news:1156494647.040814.85720@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks Ara for the reply. Actually problem is that i have created a
process which further creates a process in debug mode and a thread is
running in that parent process which receives all the debug events. But
the problem is that when the parent process is killed the debugger
thread is also getting killed which in turn kills the child process,
because killing the debugger will also kill the debugee. So i want that
even if the parent process gets killed the debugger thread should keep
running so that child process doesn't gets killed. I hope now you
understand the problem.
Then dont kill the debugger. i.e. dont kill the parent process.
Either re-architect the parent process such that the "main" thread calls
ExitThread() rather than ExitProcess() to exit (not that, simply returning
from main()/WinMain() causes the CRT to call exit() which calls
ExitProcess() on your behalf.). This may leave too many resources comitted
to that process, in which case, create a third process to host the debug
thread.
.
- Follow-Ups:
- Re: Create Thread problem
- From: Saurav
- Re: Create Thread problem
- References:
- Create Thread problem
- From: Saurav
- Re: Create Thread problem
- From: Ara Avanesyan
- Re: Create Thread problem
- From: Saurav
- Create Thread problem
- Prev by Date: Re: Create Thread problem
- Next by Date: Re: How to change process memory quotas
- Previous by thread: Re: Create Thread problem
- Next by thread: Re: Create Thread problem
- Index(es):
Relevant Pages
|
Loading