Re: Create Thread problem



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.


Ara Avanesyan wrote:
Can we create a thread in windows which doesn't get killed with the
parent process id? If answer is No then can we change the parent
process of a thread?....
no, no, it's nonsence

instead of thinking of changing thread's parent process, create the thread
in context of that other process (CreateRemoteThread)

.



Relevant Pages

  • Re: Create Thread problem
    ... process which further creates a process in debug mode and a thread is ... running in that parent process which receives all the debug events. ... because killing the debugger will also kill the debugee. ... a process calls ExitProcess, it kills the ...
    (microsoft.public.vc.ide_general)
  • RE: Am I running from studio?
    ... If you just wanted to determine if your winform application is debugged by ... debugger is attaching to your application. ... checking the current winform application's parent process. ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.debugging)
  • Re: Create Thread problem
    ... what you are proposing isn't doable for user mode. ... debugger in its own process if you must kill the parent process. ... That's why i want to change the parent process for the thread or make ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Create Thread problem
    ... i Can't put the debugger in the process because i attach the debugger ... debugger in its own process if you must kill the parent process. ... Windows SDK MVP ... That's why i want to change the parent process for the thread or make ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Create Thread problem
    ... That's why i want to change the parent process for the thread or make ... running in that parent process which receives all the debug events. ... because killing the debugger will also kill the debugee. ... Then dont kill the debugger. ...
    (microsoft.public.win32.programmer.kernel)