01-04-2006 02:38 AM
01-04-2006 01:36 PM
01-04-2006 03:56 PM
01-09-2006 04:16 AM
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
01-09-2006 04:39 AM
01-09-2006 08:12 AM
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
02-14-2006 08:02 AM
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