This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with file read in CCS v 3.3

Hi

I am facing a problem using the fread in one of my codes.

I have to read a structure worth of information for every frame of data I have to process. I have decalred the file pointers as globals in main and using them as extern where I have to call the function.

The problem that I am facing is that in the first frame I get correct information from the fread and the second time onwards, I get all zeroes as my information.

I have tried increasing the heap size as well but that did not solve the purpose.

Please provide some help on this issue.

Thanks

Dushyant