Jump to content
  • Advertisement
Sign in to follow this  
Running_Wolf

fopen = assert error?

This topic is 4772 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Using Visual C++ .NET 2003. Whenever I try to use the fopen functions, it thorows an exception error. I can't find anything on MSDN telling me of some change in the way fopen works in 2003, so do any of you know anything?

Share this post


Link to post
Share on other sites
Advertisement
assert or exception? the two are very different.

fopen will assert on a missing file in debug mode - you can safely ignore it and continue execution - things will work as expected.

Share this post


Link to post
Share on other sites
Yes, but in this case they're using it for a general "alert the programmer of possible badness" - which is a possible use. Although I wouldn't do it that way myself, it does indicate to bad programmers who don't check their file is valid what went wrong.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!