コード例 #1
0
        public void StopCapture(object idSensor)
        {
            int errorCode = 0;

            try
            {
                errorCode = GrFingerprintProxy.GrCapStopCapture(idSensor.ToString());
            }
            catch (AccessViolationException exception)
            {
                FingerprintException exception2 = new FingerprintException(-113, exception);
                throw exception2;
            }
            finally
            {
                if (this.gchFinger.IsAllocated)
                {
                    this.gchFinger.Free();
                }
                if (this.gchImage.IsAllocated)
                {
                    this.gchImage.Free();
                }
            }
            FingerprintException.CheckError(errorCode);
        }