G
gustavo.samour
Hi,
I'm trying to code an application that reads files from the DVD drive.
The problem I have is that the files are being cached/buffered. So the
first time I run the application, the files are read from the DVD, but
the second time I run it and the next times after that, the files are
read from cache instead of being read from DVD. Normally, buffering/
caching is a good thing. But this is for a benchmark type application
in which I need to read files from the DVD every single time. I'm
currently using FILE* and fread_s. To avoid buffering I call:
setvbuf( myfile, NULL, _IONBF, 0 );
But that doesn't help. Maybe it does, but perhaps there are more
caching mechanisms in place. Can anyone please help me out?
I'm trying to code an application that reads files from the DVD drive.
The problem I have is that the files are being cached/buffered. So the
first time I run the application, the files are read from the DVD, but
the second time I run it and the next times after that, the files are
read from cache instead of being read from DVD. Normally, buffering/
caching is a good thing. But this is for a benchmark type application
in which I need to read files from the DVD every single time. I'm
currently using FILE* and fread_s. To avoid buffering I call:
setvbuf( myfile, NULL, _IONBF, 0 );
But that doesn't help. Maybe it does, but perhaps there are more
caching mechanisms in place. Can anyone please help me out?