public void TestCreateDestroy() { IntPtr connHandle = IntPtr.Zero; int iterations = 5000; for (int i = 0; i < iterations; i++) { //LEAP_CONNECTION_MESSAGE msg = new LEAP_CONNECTION_MESSAGE(); LeapC.CreateConnection(out connHandle); LeapC.OpenConnection(connHandle); LeapC.DestroyConnection(connHandle); } }
public void TestCreateDestroyWithConfigRequest() { IntPtr connHandle = IntPtr.Zero; int iterations = 5000; uint requestId; for (int i = 0; i < iterations; i++) { //LEAP_CONNECTION_MESSAGE msg = new LEAP_CONNECTION_MESSAGE(); LeapC.CreateConnection(out connHandle); LeapC.OpenConnection(connHandle); LeapC.RequestConfigValue(connHandle, "tracking_version", out requestId); LeapC.DestroyConnection(connHandle); } }