I have a Solution with a test Project. When I attempt to run all the tests, I am getting a Windows error (not VS- as in Windows program crash)
Test Authoring and Execution Framework: TE.ProcessHost.Managed[v5.3-1509] has stopped working
I tried a quick Google search and found minimal stuff explaining what TE is, but was unable to find anyone the same error. I don't know why it's failing, but it only started after I implemented some multi-threading, so I'll post that code in case I am doing something horribly wrong and someone can identified it.
var threadOneParams = MyParamObj.Create( //doesn't matter );
var threadTwoParams = MyParamObj.Create( //doesn't matter );
var threads = new Thread[2];
threads[0] = new Thread( MyDelegate );
threads[1] = new Thread( MyDelegate );
threads[0].Start(threadOneParams);
threads[1].Start(threadTwoParams);
threads[0].Join();
threads[1].Join();
Things I Tried
- I thought maybe I didn't have permission, so I restarted VS and and ran it as admin.
System Details
- Windows 7
- VS 2015
- .NET 6
- Microsoft's Visual Studio Testing Tools
On Second Thought
I said that MyParamObj.Create didn't matter but could it? Part of it is passing an int[]. I am intending that this would be the reference to the array, but maybe that could be related? Maybe I need to create a pointer? or possibly mark it as volatile?
Aucun commentaire:
Enregistrer un commentaire