Volker,
as far as i looked upon your added code, the problem will most likely be located in the way you discard the control. you are discarding the control in the following function:
int CVICALLBACK ChangeItemCallback (int panel, int control, int event,
void *callbackData, int eventData1,
int eventData2)
{
switch (event)
{
case EVENT_VAL_CHANGED:
DiscardCtrl(panel,iNewCtrl);
if (g_myList)
UpdateUIR (panel);
break;
}
return 0;
}
referring to the CVI-help, DiscardCtrl has to be used:
LabWindows/CVI does not allow you to call DiscardCtrl from the callback function for the control, except in res
ponse to a commit event.
please review your code and uir if this could be the reason...
- Norbert B.
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.