Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

System.AppDomainUnloadedException

Hi,

I am new to VS and holographic apps. I tried the following:
-> Create a C# test project
-> Simulated bloom gesture using perception simulation

When I run the test, i get :
Run test started ------
System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain. This can happen if the test(s) started a thread but did not stop it. Make sure that all the threads started by the test(s) are stopped before completion.

My code snippet:
[TestMethod]
public void TestMethod1()
{
Task.Run(async () =>
{
try
{
RestSimulationStreamSink sink = await RestSimulationStreamSink.Create(
new Uri("http://169.254.160.54/"),
new System.Net.NetworkCredential("", ""),
true,
new System.Threading.CancellationToken());

                IPerceptionSimulationManager manager = PerceptionSimulationManager.CreatePerceptionSimulationManager(sink);
 manager.Human.RightHand.PerformGesture(SimulatedGesture.Home);
                Thread.Sleep(2000);
                manager.Human.RightHand.PerformGesture(SimulatedGesture.Home);

            }
            catch (Exception e)
            {

            }

        });  }

My VS version is 2015 Update 3, and .net version 4.7.02053. I tried using Thread.Abort(), but Thread.Abort() is not getting listed at all.

Pl help me get this issue resolved

Sign In or Register to comment.