LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Library function error

when i debug my application, it displays " Non-fatal run time error:The control value could not be completely loaded into the panel because the panel has been changed."
 
The error occured after I do some changing with the text message in the *.uir.
 
Could sb. can help me ? thanks
0 Kudos
Message 1 of 7
(4,363 Views)
Hello,

is it possible to send the part of your code concerning the text message and the error? And if possible also the uir file? That would make it a lot easier to help you out...

Greetings,
Wim
0 Kudos
Message 2 of 7
(4,336 Views)
Hi.
 
Do you use the User Interface library functions SavePanelState() and RecallPanelState() in your app? If so, and if you modify the .uir file between runs, the "saved panel state" file can become incompatible with the .uir; in this case, you need to delete the "saved panel state" file.
 
You may find some useful information in this thread.
 
Regards,
Colin.
 
Message 3 of 7
(4,323 Views)

hi colin and Wim,

sorry for reply you late.

As colin said, I use // to remark the Recall Panel State code in my app. And the error never happened. thanks for your help. But, should I remark Recall Panel State code forever, or should I do some other change,then I can reuse this code?

thanks

crystal  

0 Kudos
Message 4 of 7
(4,278 Views)
SavePanelState function saves all controls values and some other elements in a physical file on disk. RecallPanelState retrieves those informations from the disk and updates consequently the panel. This mechanism relies on that the panel does not change between save and recall operations.
 
The error you are getting is fired exactly when the panel structure has changed after the SavePanelState command has been executed, and is not likely to happen anymore if you re-save the panel state from scratch after panel changes and before recalling its state.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 5 of 7
(4,271 Views)

Hi,

DO you mean if I  re-save the panel state from scratch after panel changes and before recalling its state, this error won't happen, and I can recall this panel state again in my app code?

Another question with my app,

 gsm_rf_tester_main.c - 6 warnings
  695, 61   Warning: Local 'l_vChecklistId' has not been fully initialized.
  696, 61   Warning: Local 'l_vChecklistId' has not been fully initialized.
  697, 55   Warning: Local 'l_vChecklistId' has not been fully initialized.
  1416, 42   Warning: Local 'l_vChecklistId' has not been fully initialized.
  1417, 42   Warning: Local 'l_vChecklistId' has not been fully initialized.
  1418, 36   Warning: Local 'l_vChecklistId' has not been fully initialized.
this build error occured during debugging.

Do you know what is "has not been fully initialized" meaning? I check I have int it at the beginning of this callback as below

int l_vTestConfigPanelHandle;
    int l_vButtonId[12],l_vChecklistId[12],state,OnColor,OffColor,i;

thanks

crystal

0 Kudos
Message 6 of 7
(4,260 Views)

 RecallPanelState(..), Error -79, CVI version 6.0

I had the same error when the panel contained a table.

RecallPanelState(..) would only work when the table contained the exact same number or rows as it did at SavePanelState(..)

The solution to my problem was to add rows to the table untill error -79 went away.

 if ( (panel = LoadPanel(0, "Panel.uir", PANEL)) < 0 )
  return -1;

  // can only recall panel state when table has the correct number of rows !
  for ( i = 0; i < 20; ++i )
  {
   iErr = RecallPanelState(panel, filename, 0);
   if ( iErr != -79 ) break;
   InsertTableRows(panel, PANEL_TABLE_MyTable, -1, 1, VAL_USE_MASTER_CELL_TYPE);
  }
  DisplayPanel(panel);
  RunUserInterface();

Phil

 

0 Kudos
Message 7 of 7
(4,165 Views)