I have a problem whereby a call to fread is working when compiled with
optimization disabled, but when compiled with full optimization it is
failing. Is this a known problem?
Regards
Ray
David Lowndes - 01 Sep 2005 22:10 GMT
>I have a problem whereby a call to fread is working when compiled with
>optimization disabled, but when compiled with full optimization it is
>failing. Is this a known problem?
Ray,
Since fread is a library function it's unlikely to be the source of
the problem regardless of the optimization - I think you need to look
in your own code for the issue. It's more likely to be a real problem
that doesn't show up in a debug build. If you're using a recent
version of VS, be sure to debug with the run-time checking options
enabled - they may show a problem even in the debug build.
Dave

Signature
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Scott Abee Yerfault - 02 Sep 2005 00:21 GMT
Yes, there is a problem reading files under Windows.
The only way it works is to turn off all optimizations, activate all
debugging information, link to MFC, and run it under the debugger.
P.S. Just kidding.
> I have a problem whereby a call to fread is working when compiled with
> optimization disabled, but when compiled with full optimization it is
[quoted text clipped - 3 lines]
>
> Ray