07-21-2011 02:20 PM
Hi,
I am using shared variable, It was working fine, but now out of nothing I am getting this error:
Invalid argument type:found pointer to array of 2000 char, expected pointer to pointer to char.
why is this giving me error at "&throughputStat" ?
here is my array of 2000 char
char throughputStat[2000]= "======IMPORTANT MESSAGES======\n\n";
.
.
.
CNVCreateScalarDataValue (&statDa, CNVString,"");
CNVRead (tPutStat, CNVWaitForever, &statDa);
CNVGetScalarDataValue (statDa, CNVString, &throughputStat);
//strcpy(emptyMess,throughputStat);
CNVSetScalarDataValue (statData, CNVString,throughputStat);
CNVWrite (writer, statData, CNVWaitForever);
thanks
07-22-2011 01:53 AM
See the answer from Markus Kossman here.