SFML community forums

Help => System => Topic started by: dydya-stepa on November 24, 2011, 01:06:29 pm

Title: stack trace in error messages?
Post by: dydya-stepa 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)
Title: stack trace in error messages?
Post by: Laurent 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.