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

Author Topic: stack trace in error messages?  (Read 4086 times)

0 Members and 1 Guest are viewing this topic.

dydya-stepa

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
stack trace in error messages?
« on: November 24, 2011, 01:06:29 pm »
it it possible to log stack trace in sfml error messsages? as sometimes it's quite hard to find where it happens

Impossible to create render image (failed to create the target image)
Impossible to create render image (failed to create the target image)
Impossible to create render image (failed to create the target image)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
stack trace in error messages?
« Reply #1 on: November 24, 2011, 01:17:30 pm »
Quote
it it possible to log stack trace in sfml error messsages?

Nop, sorry.

Quote
as sometimes it's quite hard to find where it happens

The message is just a description of a problem that was reported by the API. It doesn't say where it happens because you're supposed to track errors in your code.
In your example, you must find a call to RenderImage::Create that returns false.
Laurent Gomila - SFML developer

 

anything