03-16-2009 09:57 AM
I just upgraded to CVI9.0 on a project and I received a zero on this curtime=time(NULL);
time_t starttime ,curtime;
curtime=time(NULL);
dif=difftime (curtime,starttime);
This caused a Fatal run time error later in my code so program halted in the debug window.
In debug the value for curtime was 0.
This program worked fine in CVI8.0.1 prior to the upgrade.
Solved! Go to Solution.
03-17-2009 07:26 AM
Sorry my mistake. Had a bug in my software. line was bypassed.
time() function is OK.