Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Intercept SFML errors  (Read 1424 times)

0 Members and 1 Guest are viewing this topic.

tntexplosivesltd

  • Full Member
  • ***
  • Posts: 163
    • View Profile
Intercept SFML errors
« on: May 08, 2011, 03:52:00 pm »
Hi there
Just wondering if there is a way of intercepting SFML error messages (I assume they are bound for stderr or sdtout).
I want to be able to display errors on the screen, rather than have them go to the console.
Thanks in advance.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Intercept SFML errors
« Reply #1 on: May 08, 2011, 04:17:31 pm »
Yep, they go to std::cerr, so you can easily redirect them to a different streambuf.
Laurent Gomila - SFML developer

tntexplosivesltd

  • Full Member
  • ***
  • Posts: 163
    • View Profile
Intercept SFML errors
« Reply #2 on: May 08, 2011, 04:30:08 pm »
Cool, thanks for that!