ATTR_REPORT_LOAD_FAILURE
Type: | System attribute |
Description: | The LoadPanel, LoadPanelEx, LoadMenuBar, and LoadMenuBarEx functions can fail for many reasons. For instance, the library may not be able to find the .uir file. Or a callback function specified in the panel or menu bar may not be defined in the project, executable, or DLL. It is not unusual for a load function to fail in a standalone executable even though it succeeded while debugging. If you do not check for errors in your program, the behavior of the program can be very confusing. This attribute, when enabled, causes an error message to be displayed when one of the load functions fails. The error message is displayed in all cases except when debugging and you have enabled the Run»Break on»Library Errors feature. If a load function fails in a standalone executable or DLL created in an external compiler, the most common reasons are: (1) The executable was created in a directory different than where the LabWindows/CVI project file was saved. This can cause the library to fail to find the .uir file. (2) You did not create a .UIR Callbacks Object File, or you did not add it to your external compiler project. See the External Compiler Support command in the Build menu of the Workspace window. This will cause the library to fail to find callback functions referenced in the .uir file. (3) You did not call InitCVIRTE at the beginning of your program or in DllMain. This will cause the library to fail to find callback functions referenced in the .uir file. (4) Your callback functions are in a DLL but are not exported by the DLL, and you are not using LoadPanelEx or LoadMenuBarEx. This will cause the library to fail to find callback functions referenced in the .uir file. 0 = Do not display a message when LoadPanel or LoadMenuBar fails. 1 = Display a message when LoadPanel or LoadMenuBar fails. |
Data Type: | integer |
Default Value: | 1 |
LabWindows/CVI Compatibility: |
LabWindows/CVI 4.0 and later |
Values
0 | False |
1 | True |