LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NON-FATAL RUN-TIME ERROR: error return value==-58

Solved!
Go to solution

Hello All,

Please help, every time I rebuild my project I got an error and sometimes not. The highlighted with red color is the error.

int CVICALLBACK Timer1CB (int panel, int control, int event,
  void *callbackData, int eventData1, int eventData2)
{
 switch (event)
 {
  case EVENT_TIMER_TICK:
   
   GetCurrentDateTime (&now);
   
   FormatDateTimeString (now, "%H:%M:%S  %p  %d  %B  %Y", TimeBuffer, 100);
   
   SetCtrlVal(panel,au_STRING, TimeBuffer);
   break;
 }
 return 0;
}

NON-FATAL RUN-TIME ERROR:   "Cobot_Machine Interface.c", line 217, col 13, thread id 7768:   Function SetCtrlVal: (return value == -58 [0xffffffc6]). The control does not have a value.

 

Thanks in advanced!.

 

0 Kudos
Message 1 of 4
(3,628 Views)
Solution
Accepted by topic author Master_Viper

I solved the problem now.

0 Kudos
Message 2 of 4
(3,612 Views)

Hey Master_Viper,

 

Could you post your solution so that other users can get help with this issue in the future?

 

Cheers,

Ryan C.

0 Kudos
Message 3 of 4
(3,606 Views)

There is conflict on two uir with the same name. So, what I did is delete the other file.

 

 

Master_Viper

0 Kudos
Message 4 of 4
(3,597 Views)