예제 #1
0
        /// <summary>
        /// Gets the global error state.
        /// </summary>
        /// <returns>null if all is OK, a description of the error otherwise</returns>
        public string GetGlobalErrorState()
        {
            UInt32 state = OpenNIImporter.xnGetGlobalErrorState(this.InternalObject);

            if (state == 0)
            {
                return(null);
            }
            else
            {
                return(WrapperUtils.GetErrorMessage(state));
            }
        }
예제 #2
0
 private void ErrorStateChangedCallback(UInt32 status, IntPtr cookie)
 {
     if (this.errorStateChanged != null)
     {
         if (status == 0)
         {
             this.errorStateChanged(null);
         }
         else
         {
             this.errorStateChanged(WrapperUtils.GetErrorMessage(status));
         }
     }
 }
예제 #3
0
        public string GetError()
        {
            UInt32 status = OpenNIImporter.xnEnumerationErrorsGetCurrentError(this.it);

            return(WrapperUtils.GetErrorMessage(status));
        }
예제 #4
0
 public XnStatusException(UInt32 status)
     : base(WrapperUtils.GetErrorMessage(status))
 {
     this.status = status;
 }