06-29-2011 11:45 AM
Hi, some quick help needed.
I have a piece of code here and I am implementing the data socket, but I am getting some error. Can someone tell me how to fix it?
Code:
if (runDirect ==2)
{
getCounter1(h1, s1,p1);
// getLatency_OverTime1(h1, s1,p1);
sprintf (tputdisp1,"%17d%20d%16s",tPut_bps1,tPut_fps1,Time);
if (count>3)
{
tPut_totalCPE = (tPut_totalCPE + tPut_bps1);
totalavg1 =totalavg1 + avg1;
averaging = averaging +1;
// tPutAverage = tPut_totalCPE/averaging;
// avgLatencyBase= totalavg1/averaging;
}
sprintf(tPutAver_CPE, "Tput Average : %.1f bps",tPutAverage);
// sprintf (latAvgCPE,"Latency Average : %.1f ms",avgLatency);
WriteLine (out1, tputdisp1, -1);
strcpy(WriteData.tputdisp1Sock,tputdisp1);
//Set the DataSocket object value
error=DS_SetDataValue (DSWriteHandle, CAVT_CSTRING, &tputdisp1, 300, 0);
Checkerror(error);
Error message: Function DS_SetDataValue: (return value ==-2147024890 (0x80070006). Unknown Error
06-29-2011 01:00 PM
Solved. Thanks.