03-12-2007 03:35 PM
03-12-2007 04:39 PM
03-13-2007 04:49 AM
03-13-2007 07:11 AM
Hi,
I have checked again and thinking it might not be memory leak between Teststand and CVI, instead memory leaks in CVI itself.
I have modified this function to the following simple call. and when I run this function many times, I didn't have any problems.
int _stdcall _export readserialport(int COM_Port,char COM_Data[500])
{
int n=0;
n = ComRdTerm (COM_Port,COM_Data,500,00); // 00 -Event Termination byte
return n;
}
But when I have added the line COM_Data=strcat(COM_Data,"end"); before return, Teststand crashed.
I feel the memory leak is the way the function strcat() works; ANy body have any clues...
03-13-2007 11:42 AM