Hi Remco,
Sorry it took a while to reply, work got in the way.
> Am I correct in my understanding that you're able to observe the problem with the 'Instrument output assembly' both disabled and enabled?
That's right.
> And that the issue seems to have an intermittent side to it?
Sort of. If I restart Windows, then it builds fine the first time. If I then close VS and reopen it, it won't build, and then refuses to build again until Windows is restarted.
No, I can't see anything unusual about the project.
> Examine the list of running threads. Copy/paste the interesting stack traces here into the forum
Here you go:
Not Flagged > 8368 1 Main Thread Main Thread nCrunch.TaskRunner.dll!nCrunch.TaskRunner.TaskEnvironmentController.WaitForInstructions Normal
> mscorlib.dll!System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle waitableSafeHandle, long millisecondsTimeout, bool hasThreadAffinity, bool exitContext) Unknown
mscorlib.dll!System.Threading.WaitHandle.WaitOne(int millisecondsTimeout, bool exitContext) Unknown
nCrunch.TaskRunner.dll!nCrunch.TaskRunner.TaskEnvironmentController.WaitForInstructions() Unknown
nCrunch.TaskRunner.dll!NCrunch.TaskRunner.TaskEnvironment.WaitForInstructions() Unknown
[AppDomain (nCrunch.EngineHost451.x64.exe, #1) -> AppDomain (nCrunch.TestRunner.AppDomain_51b4dea635504c0bb979cabfb85ce6cf, #2)]
nCrunch.TaskRunner.dll!NCrunch.TaskRunner.TaskRunnerProgram.WaitForInstructions(string notUsed) Unknown
nCrunch.TaskRunner.dll!NCrunch.TaskRunner.TaskRunnerProgram.Main(string[] args) Unknown
nCrunch.EngineHost451.x64.exe!nCrunch.TaskRunner451.x64.Program.Main(string[] args) Unknown
Not Flagged 10928 0 Worker Thread <No Name> Normal
Not Flagged 10136 0 Worker Thread <No Name> Normal
Not Flagged 9568 0 Worker Thread <No Name> Normal
Not Flagged 7380 5 Worker Thread <No Name> nCrunch.TaskRunner.dll!nCrunch.TaskRunner.Ipc.Fast.IpcReader.Read Normal
> mscorlib.dll!System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext) Unknown
nCrunch.TaskRunner.dll!nCrunch.TaskRunner.Ipc.Fast.IpcReader.Read(byte[] buffer, int offset, int count) Unknown
nCrunch.TaskRunner.dll!nCrunch.TaskRunner.Ipc.Fast.IpcStream.Read(byte[] buffer, int offset, int count) Unknown
nCrunch.TaskRunner.dll!nCrunch.TaskRunner.Ipc.Fast.FastIpcServer.(object ) Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart(object obj) Unknown
[Native to Managed Transition]
Not Flagged 2056 6 Worker Thread <No Name> nCrunch.TaskRunner.dll!NCrunch.TaskRunner.ProcessWatcher. Normal
> mscorlib.dll!System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext) Unknown
nCrunch.TaskRunner.dll!NCrunch.TaskRunner.ProcessWatcher.(object ) Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart(object obj) Unknown
[Native to Managed Transition]
Not Flagged 10640 7 Worker Thread Worker Thread nCrunch.TaskRunner.dll!nCrunch.TaskRunner.Ipc.Fast.IpcReader.Read Lowest
> mscorlib.dll!System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext) Unknown
nCrunch.TaskRunner.dll!nCrunch.TaskRunner.Ipc.Fast.IpcReader.Read(byte[] buffer, int offset, int count) Unknown
nCrunch.TaskRunner.dll!nCrunch.TaskRunner.Ipc.Fast.IpcStream.Read(byte[] buffer, int offset, int count) Unknown
nCrunch.Client.dll!nCrunch.Client.EngineHosting.SharedEventPump.() Unknown
nCrunch.Core.dll!nCrunch.Core.Threading.PooledWorkItem.Start() Unknown
nCrunch.Core.dll!nCrunch.Core.Threading.ThreadFactory.(object ) Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() Unknown
mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch() Unknown
[Native to Managed Transition]
Not Flagged 11164 8 Worker Thread Worker Thread nCrunch.Client.dll!nCrunch.Client.EngineHosting.SharedEventQueue.DequeueEvent Lowest
> mscorlib.dll!System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle waitableSafeHandle, long millisecondsTimeout, bool hasThreadAffinity, bool exitContext) Unknown
mscorlib.dll!System.Threading.WaitHandle.WaitOne(int millisecondsTimeout, bool exitContext) Unknown
nCrunch.Client.dll!nCrunch.Client.EngineHosting.SharedEventQueue.DequeueEvent() Unknown
nCrunch.Client.dll!nCrunch.Client.EngineHosting.SharedEventPump.() Unknown
nCrunch.Core.dll!nCrunch.Core.Threading.PooledWorkItem.Start() Unknown
nCrunch.Core.dll!nCrunch.Core.Threading.ThreadFactory.(object ) Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() Unknown
mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch() Unknown
[Native to Managed Transition]
Not Flagged 10780 10 Worker Thread .NET SystemEvents System.dll!Microsoft.Win32.SystemEvents.WindowThreadProc Normal
[Managed to Native Transition]
> System.dll!Microsoft.Win32.SystemEvents.WindowThreadProc() Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() Unknown
[Native to Managed Transition]
Not Flagged 9396 0 Worker Thread <No Name> Normal
Not Flagged 5940 12 Worker Thread <No Name> Normal
Not Flagged 10164 20 Worker Thread <No Name> Normal
Hope that helps!
Julian