davemac2
April 25th, 2007, 05:39 AM
Greetings,
I have an application that spawns a console-based child process that runs a debugger. I spawn the process redirecting the child process input to the parent VB.NET application using the .NET process class to start it. I do this because the parent app will sometimes send commands to the debugger to break and perform low level memory read and write commands. The debugger's output is directed to a log file via a debugger command line option. This file is monitored by my VB.NET app rather than redirecting the child process output directly thru an anonymous pipe. This all works ok and there are reasons to do it this way, but I need to support a special user interactive mode whereby if the application running under the debugger in my console window crashes or throws an exception and breaks into the debugger, I need to release the input pipe from the parent to the child process and allow a user to interact with the child debugger process running in its separate console window. Ie. I would like to set the child process' input back to STDIN. Is that possible? The only other way I can think of to solve this is rather than redirect child process input using a pipe to my parent app, have the parent app send keystrokes to the process' iconsole window message queue and not redirect STDIN for the child process.
thanks in advance,
dave mc
I have an application that spawns a console-based child process that runs a debugger. I spawn the process redirecting the child process input to the parent VB.NET application using the .NET process class to start it. I do this because the parent app will sometimes send commands to the debugger to break and perform low level memory read and write commands. The debugger's output is directed to a log file via a debugger command line option. This file is monitored by my VB.NET app rather than redirecting the child process output directly thru an anonymous pipe. This all works ok and there are reasons to do it this way, but I need to support a special user interactive mode whereby if the application running under the debugger in my console window crashes or throws an exception and breaks into the debugger, I need to release the input pipe from the parent to the child process and allow a user to interact with the child debugger process running in its separate console window. Ie. I would like to set the child process' input back to STDIN. Is that possible? The only other way I can think of to solve this is rather than redirect child process input using a pipe to my parent app, have the parent app send keystrokes to the process' iconsole window message queue and not redirect STDIN for the child process.
thanks in advance,
dave mc