public string GetGlobalErrorState() { UInt32 state = OpenNIImporter.xnGetGlobalErrorState(this.InternalObject); if (state == 0) { return null; } else { return WrapperUtils.GetErrorMessage(state); } }