Jump to content
  • Advertisement
Sign in to follow this  
TythosEternal

Error Reporting on a Mac

This topic is 4044 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

Good evening, I'm following the OpenGL tutorials and documentation found specifically at http://developer.apple.com/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_drawing/chapter_3_section_4.html , but I'm having trouble with an innocuous function reportError(str), for which I cannot find documentation. This brings me to the main question: How do all y'all report / stream errors from a Carbon environment? Can I see some examples of writing to a text file stream, or do most people rely on interrupts? I'd like to be able to output them in realtime. I can think of several solutions, most of which involve reloading the Foundation classes, but I'd prefer something simple, straightforward, and effective. What's the best way? What do YOU do?

Share this post


Link to post
Share on other sites
Advertisement
How about just using std::cerr (or std::cout)? It works just fine in the Carbon environment on the Mac. If you want to launch your app from the GUI, wrap it in a script that redirects stdin and stdout.

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!