Using normal file protocol under c++11.
File * filep = fopen(“filename”, “r”);
if (filep != NULL)
struct stat statBuff;
int status = stat(“filename”, &statBuff);
if (status == 0)
int numRead = 0;
numRead = fread(buffer, 500, 1, filep);
This crashes during the fread call. If I reduce the size to 100 bytes it mostly passes, but if I reduce it to one byte and put it in a for loop to read one byte over and over until it reaches size, it works just fine and I get all my data. In this case, my file is only 374 bytes, so I know I’m not running off the end of the buffer.
Has anyone else seen this? This is with Legato 7.11 (R7) with a WP76xx system.