I've had a strange issue for a couple of weeks now and I still can't find a solution.
I'm working on a test tool in C# (using .NET 3.5) for our application that runs on a remote computer. It is able to update source and start VS to build and run our program while monitoring its state and send information about that to a server. All scheduled
tasks is done by python scripts, the testtool is responsible only for maintaining a list of scripts and run them using System.Diagnostics.Process. The python scripts can start other programs (svn.exe, devenv.exe). The tool also creates a System.Runtime.Remoting.Channels.Tcp.TcpChannel
instance through which it communicates with monitoring clients that runs e.g. on my local computer.
The strange issue is when I close my testtool and it has already run a python script that launched another process (svn or VS). Though I call also Kill() and Dispose() on the running Process and python will stop, the other process started py python keeps
running and thats a good thing for me, there's no problem with that. The problem occurs when I want to restart the testtool it sais that it can't create the TcpChannel because there exist already one with that port. I can only manage to restart it after killing
svn or VS manually in task manager, and that's bad cause I still want to monitor a running instance of studio.
View Complete Post