コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }