Admin Production ni-theme
Current Publication

User Interface Library Error Codes

LabWindows/CVI

User Interface Library Error Codes

The User Interface Library routines return negative values when they detect error codes. Some functions, such as LoadPanel, return positive values for a successful completion. The following table lists the error codeserror codes, defined constants, and error messages associated with functions in the LabWindows/CVI User Interface Library.

Use the GetUILErrorString function to convert the error code, returned in the status parameter of User Interface Library functions, into meaningful error messages.

Error codes are defined in the cvi\include\userint.h file.

Code Defined Constant Error Message
0 UIENoError Success
-1 UIEManagerCouldNotOpen The Interface Manager could not be opened.
-2 UIESystemFontCouldNotBeLoaded The system font could not be loaded.
-3 UIEOperationInvalidDuringPopUp The operation attempted cannot be performed while a pop-up menu is active.
-4 UIEHandleInvalid Panel, pop-up, menu bar, or plot ID is invalid.
-5 UIEAttemptToMovePanelToInvalidLocation Attempted to position panel at an invalid location
-6 UIEAttemptedToMakeInoperableCtrlActive Attempted to make an inoperable control the active control.
-7 UIEOperationRequirePanelBeLoaded The operation requires that a panel be loaded.
-8 UIEOperationRequiresPopUpBeActive The operation requires that a pop-up menu be active.
-9 UIEOperationRequiresMenuBeLoaded The operation requires that a menu bar be loaded.
-10 UIEControlNotTypeExpectedByFunction The control is not the type expected by the function.
-11 UIEInvalidMenuItemId Invalid menu item ID.
-12 UIEOutOfMemory Out of memory
-13 UIEInvalidControlId Invalid control ID.
-14 UIEValueIsInvalidOrOutOfRange Value is invalid or out of range.
-15 UIEFileIsNotUserInterfaceFileOrIsBad File is not a User Interface file or has been corrupted.
-16 UIEFileFormatIsOutOfDate File format is out-of-date.
-17 UIEImageIsBadOrNotSupported PCX image is corrupted or incompatible with current display type.
-18 UIENoUserEventPossibleWithCurrentSetup No user event possible in current configuration.
-19 UIEUnableToOpenFile Unable to open UIR file.
-20 UIEErrorReadingFile Error reading UIR file.
-21 UIEErrorWritingFile Error writing UIR file.
-22 UIEErrorClosingFile Error closing UIR file.
-23 UIEPanelStateFileHasInvalidFormat Panel state file has invalid format.
-24 UIEInvalidIDinResourceFile Invalid panel ID or menu bar ID in resource file.
-25 UIEHardCopyError Error occurred during hardcopy output.
-26 UIEInvalidDefaultDirSelectedInFSPopup Invalid default directory specified in FileSelectPopup or FileSelectPopupEx function.
-27 UIEOperationIsInvalidForSpecifiedObject Operation is invalid for specified object.
-28 UIECantFindMenuString Unable to find specified string in menu.
-29 UIECantFindMenuString Palette menu items can only be added to the end of the menu.
-30 UIEMaxNumberOfMenusPerBarExceeded Too many menus in the menu bar.
-31 UIECantSetSeparatorCheckMark Separators cannot have checkmarks.
-32 UIESeparatorCantHaveSubMenu Separators cannot have submenus.
-33 UIEItemMustBeASeparator The menu item must be a separator.
-34 UIEItemCantBeASeparator The menu item cannot be a separator.
-35 UIEItemAlreadyHasSubMenu The menu item already has a submenu.
-36 UIEItemDoesNotHaveASubMenu The menu item does not have a submenu.
-37 UIECtrlIdIsNotAMenuOrMenuItemIdOrNull The control ID passed must be a menu ID, a menu item ID, or NULL.
-38 UIECtrlIdIsNotAMenuOrMenuItemId The control ID passed must be a menu ID, or a menu item ID.
-39 UIENotASubMenuId The control ID passed was not a submenu ID.
-40 UIEInvalidMenuId The control ID passed was not a valid ID.
-41 UIENotAMenuBarHandle The ID is not a menu bar ID.
-42 UIENotAPanelHandle The ID is not a panel ID.
-43 UIEOperationInvalidWhileThisPopupIsActive This operation cannot be performed while this pop-up panel is active.
-44 UIEAttributeNotAppropriateForSpecifiedControlOrPanelOrMenu This control/panel/menu does not have the specified attribute.
-45 UIEInvalidControlType The control type passed was not a valid type.
-46 UIEInvalidAttribute The attribute passed is invalid.
-47 UIESlideMustHaveFillAboveOrBelow The fill option must be set to fill above or fill below to paint ring slide's fill color.
-48 UIEScaleMustHaveFillAboveOrBelow The fill option must be set to fill above or fill below to paint numeric slide's fill color.
-49 UIESlideMustBeLinear The control passed is not a ring slide.
-50 UIEScaleMustBeLinear The control passed is not a numeric slide.
-51 UIESlideDoesntHaveIncDecArrows The control passed is not a ring slide with inc/dec arrows.
-52 UIEScaleDoesntHaveIncDecArrows The control passed is not a numeric slide with inc/dec arrows.
-53 UIEInvalidDataType The data type passed in is not a valid data type for the control.
-54 UIEInvalidAttrForDataType The attribute passed is not valid for the data type of the control.
-55 UIEIndexOutOfRange The index passed is out of range.
-56 UIENoItemsInList There are no items in the list control.
-57 UIEBufTooSmall The buffer passed was to small for the operation.
-58 UIECtrlDoesNotHaveAValue The control does not have a value.
-59 UIEValueNotInListCtrl The value passed is not in the list control.
-60 UIENotListCtrl The control passed must be a list control.
-61 UIENotListCtrlOrBinary The control passed must be a list control or a binary switch.
-62UIENotStringDataType The data type of the control passed must be set to a string.
-63 UIEAttributeNotSettable That attribute is not a settable attribute.
-64 UIEInvalidCtrlMode The value passed is not a valid mode for this control.
-65 UIENullPointerPassed A NULL pointer was passed when a non-NULL pointer was expected.
-66 UIECantSetGetTextBGColorOfMenuRing The text background color on a menu ring cannot be set or gotten.
-67 UIERingMustBeMenuStyle The ring control passed must be one of the menu ring styles.
-68 UIECantColorTextTransparent Text cannot be colored transparent.
-69 UIEInvalidValueInListControl A value cannot be converted to the specified data type.
-70 UIEInvalidTabbingOrderPosition Invalid tab order position for control.
-71 UIECantSetTabOrderOfAnIndicator The tab order position of an indicator-only control cannot be set.
-72 UIENotAValidNumber Invalid number.
-73 UIEPanelDoesntHaveAMenuBar There is no menu bar installed for the panel.
-74 UIENotTextBox The control passed is not a text box.
-75 UIEInvalidChartStyle Invalid scroll mode for chart.
-76 UIEInvalidImageType Invalid image type for picture.
-77 UIENotATopLevelPanelAttribute The attribute is valid for child panels only. Some attributes of top level panels are determined by the host operating system.
-78 UIEListCtrlNotInCheckMode The list control passed is not in check mode.
-79 UIEPanelDataDoesNotFitIntoPanel The control values could not be completely loaded into the panel because the panel has changed.
-80 UIEAxisRangeError Maximum value must be greater than minimum value.
-81 UIENonExistantCursor Graph does not have that many cursors.
-82 UIENotAValidPlot Invalid plot.
-83 UIEOutsidePlotArea New cursor position is outside plot area.
-84 UIEStringTooLarge The length of the string exceeds the limit.
-85 UIECallbackFuncIsWrongType The specified callback function does not have the required prototype.
-86 UIECantFindCallbackFunc The specified callback function is not a known function. For external compilers, the UIR callbacks object file cannot be in the executable or DLL.
-87 UIEZeroCursors Graph cannot be in this mode without cursors.
-88 UIEInvalidChartScaling Invalid axis scaling mode for chart.
-89 UIEFontNotInFontTable The font passed is not in font table.
-90 UIEBadAttributeValue The attribute value passed is not valid.
-91 UIETooManyFilesOpen Too many files are open.
-92 UIEfEOF Unexpectedly reached end of file.
-93 UIEIOError Input/Output error.
-94 UIEFileWasNotFound File not found.
-95 UIEAccessDenied File access permission denied.
-96 UIEFileAccessNotEnabled File access is not enabled.
-97 UIEDiskFull Disk is full.
-98 UIEFileAlreadyExists File already exists.
-99 UIEFileAlreadyOpen File already open.
-100 UIEBadPathnameMsg Badly formed pathname.
-101 UIEResourceNotFound File is damaged.
-102 UIEOldUnsupportedUIResourceFormat The format of the resource file is too old to read.
-103 UIEFileIsCorrupted File is corrupted.
-104 UIEOperationFailed The operation could not be performed.
-105 UIESlideMustBeRound The control passed is not a ring knob, dial, or gauge.
-106 UIEScaleMustBeRound The control passed is not a numeric knob, dial, or gauge.
-107 UIECountOutOfRange The count passed is out of range.
-108 UIENotAValidKeycode The keycode is not valid.
-109 UIESlideDoesntHaveFrame The control passed is not a ring slide with a frame.
-110 UIECantColorPanelBGTransparent Panel background cannot be colored transparent.
-111 UIECantColorTitleBGTransparent Title background cannot be colored transparent.
-112 UIEMemPrintError Not enough memory for printing.
-113 UIEReservedHotKey The shortcut key passed is reserved.
-114 UIEFileFormatIsTooNew The format of the file is newer than this version of CVI.
-115 UIESystemPrintError System printing error.
-116 UIEDriverPrintError Driver printing error.
-117 UIEDefCallBackQueueFull The deferred callback queue is full.
-118 UIEInvalidMouseCursor The mouse cursor passed is invalid.
-119 UIEPrintReentranceError Printing functions are not reentrant.
-120 UIEOutOfGDISpace Out of Windows GDI space.
-121 UIEHiddenPanelError The panel must be visible.
-122 UIEHiddenCtrlError The control must be visible.
-123 UIEInvalidAttrForPlot The attribute not valid for the type of plot.
-124 UIECantColorPlotTransparent Intensity plots cannot use transparent colors.
-125 UIEInvalidColor Color is invalid.
-126 UIECallbackNameIsAmbiguous The specified callback function differs only by a leading underscore from another function or variable. Change one of the names for proper linking.
-127 UIEInvalidBitmap Bitmap is invalid.
-128 UIENoImagePresent There is no image in the control.
-129 UIEMustBeInTopLevelPanelThread The specified operation can be performed only in the thread in which the top-level panel was created.
-130 UIEPanelNotInTUIFile The specified panel was not found in the .tui file.
-131 UIEMenuBarNotInTUIFile The specified menu bar was not found in the .tui file.
-132 UIECtrlStyleNotInTUIFile The specified control style was not found in the .tui file.
-133 UIETagOrValueMissingInTUIFile A tag or value is missing in the .tui file.
-134 UIESubFileReadingOrParsingError Error reading or parsing .sub file.
-135 UIENoPrintersInstalled There are no printers installed in the system.
-136 UIEInitialCellOutOfRange The beginning cell must be in the search range.
-137 UIEInvalidCellType The cell type passed is not valid for this operation
-138 UIECellTypeMismatch Cell type or data type is mismatched.
-139 UIECtrlDoesNotHaveMenu Controls of the type passed do not have a menu.
-140 UIECannotDiscardBuiltInCtrlMenuItem Built-in control menu items cannot be discarded.
-141 UIECantSetSeparatorBold You cannot set this attribute on menu item separators.
-142 UIEMustPassEventData2 You must pass your callback function's eventData2 parameter to this function.
-143 UIEActiveXError ActiveX error.
-144 UIEObjHandleDoesNotReferToActiveXCtrl The specified object handle does not refer to an ActiveX control.
-145 UIEActiveXCtrlNotRegistered ActiveX control not registered on this computer.
-146 UIEActiveXPersistenceError ActiveX control does not support persistence.
-147 UIEInvalidMenuButtonId The id passed was not a valid menu button id.
-148 UIECannotModifyBuiltInCtrlMenuItem Cannot set or get the attributes of built-in control menu items.
-149 UIEDataSocketError DataSocket Error.
-150 UIECtrlAlreadyBound Control already has an active data binding.
-151 UIECtrlNeedsActiveBinding Control must have an active data binding.
-152 UIEAttachedPanelMustBeChild The panel to be attached must be a direct child of the panel containing the splitter control.
-153 UIEItemIsAttached Item is already attached to splitter control.
-154 UIEItemIsNotAttached Item is not attached to splitter control.
-155 UIECannotSizeCtrl Attached control cannot be sized in this direction.
-156 UIECannotSelfAttach Splitter control cannot be attached to itself.
-157 UIEOperationInvalidOnMaskedBitmap Operation cannot be performed on a bitmap with a transparency mask.
-158 UIEOperationInvalidOnAlphaBitmap Operation cannot be performed on a bitmap with an alpha channel.
-159 UIEOperationRequiresMaskedBitmap Operation can be performed only on a bitmap with a transparency mask.
-160 UIEOperationRequiresAlphaBitmap Operation can be performed only on a bitmap with an alpha channel.
-161 UIENonExistantAnnotation Graph does not have that many annotations.
-162 UIEOperationInvalidOnTabPanel Operation cannot be performed on a tab panel.
-163 UIEAttrValidOnMenubarOnly The attribute passed is only valid for menu bars.
-164 UIEAttrValidOnMenuItemOnly The attribute passed is only valid for menu items.
-165 UIEAttrValidOnMenuAndSubmenusOnly The attribute passed is only valid for menus and submenus.
-166 UIEImageFeatureNotSupported The image contains an unsupported feature and could not be loaded.
-167 UIEImageCompressionSchemeNotSupported The image compression scheme is not supported.
-168 UIEActiveXCtrlNotLicensed ActiveX control is not licensed for this operation.
-169 UIEMXBFileFormatNotRecognized MXB file format not recognized
-170 UIEAttrValidOnMenuItemAndSubmenuOnly The attribute passed is only valid for menu items and submenus
-171 UIECannotAssignContextMenuItemShortcutKey You cannot assign a shortcut key to this context menu item
-172 UIECannotPauseUnlessContinuousMode The strip chart can only be paused when the scroll mode is set to continuous
-173 UIEAttrFixedPlotAreaNotEnabled ATTR_FIXED_PLOT_AREA must be set to TRUE before setting the position of the plot area
-174 UIEStaleData Data is stale and is no longer valid.
-175 UIEDataBindingNotSupportedIn64Bit Data binding is not available in 64-bit mode.
-176 UIEActiveXWrongConcurrencyModelForThread ActiveX controls cannot be created in a thread whose concurrency model is multithread apartment (MTA).
-177 UIECtrlNotOnPanelAssocWithCtrlArray The control passed is not on the panel associated with the control array.
-178 UIEInvalidAngleInMetaFont The angle in the specified metafont is not valid.
-179 UIECellCannotBeMadeActive The specified cell cannot be made active.
-180 UIEFileDialogWrongConcurrencyModel The dialog cannot be displayed in a thread whose concurrency model is multithread apartment (MTA).