Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / September 2005

Tip: Looking for answers? Try searching our database.

VS2003 and fread with full optimization failing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raeldor - 01 Sep 2005 08:35 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?

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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.