Closed xkjyeah closed 7 years ago
I tried to reproduce the exception, but I couldn't. Hmm...
I guess the above setup code might not be the real cause because the stack trace indicates the location that is NOT in the code(System.Diagnostics.Process.TryPrigDispose(Process, Boolean)
is generated automatically by Prig when you setup the Indirection Stub Setting of System.Diagnostics.Process.Dispose(Boolean)
method).
Could you try the following steps to find what is the real cause?
System.Diagnostics.Process.Dispose(Boolean)
method from System.v4.0.30319.v4.0.0.0.prig
.Process
object by using
statement.Process.WaitForExit
method explicitly.Hm fixed it after a bit of mucking around. Can't reproduce it consistently myself.
I get the following error:
The error seems to occur at a line with:
The code in the test leading up to it was:
It seems as though Process is still trying to set up something internally. How do I shim over the entire process class?