Hello Julio
I'm not sure what malloc has to do with this issue, but it seems that the CmtReadTSQData() function will not return unless it has read all the requested datapoints, since you have set the timeout as TSQ_INFINITE_TIMEOUT. Perhaps one thing to look into would be whether you actaully have the requested number of datapoints in the TSQ when you are trying to read it.
You can use CmtGetTSQAttribute (queueHandle, ATTR_TSQ_ITEMS_IN_QUEUE,&itemsInQueue) to check for this.
Hope this helps
Bilal Durrani
NI
Bilal Durrani
NI