LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of LoadPanelEx()in CVI 6

Hello ,

I have written lines of coding like the follows :

...
if ((hpanel = LoadPanelEx (0, "DeviceConfig.uir", PANEL, __CVIUserHInst)) < 0)
return 0;
if ((hDevServer = LoadPanelEx (0, "DeviceConfig.uir", DEV_SERVER, __CVIUserHInst)) < 0)
return 0;
.....
Althrough it can run , but in some circumstance , my application can not get back normally .I suspect of it can not load different panels which located in the same uir file . Is this true ?

David
0 Kudos
Message 1 of 2
(3,010 Views)
LoadPanel and LoadPanelEx can load any number of panels from the same UIR file.
What do you mean when you say "my application can not get back normally"? Get back from where? What is normal? How do you determine whether or not it got back normally?
Do you get any error messages?
What function do you return to? What other values does the function containing the LoadPanelEx return?
Can you determine what "some circumstance" is?
Have you manually edited the .h file for the UIR? (You never should).
Have you changed system attributes like ATTR_REPORT_LOAD_FAILURE and ATTR_ALLOW_MISSING_CALLBACKS from the defaults?
Message 2 of 2
(3,010 Views)