[cairo] Conditions under which CAIRO_STATUS_WRITE_ERROR occurs?

Uli Schlachter psychon at znc.in
Sat Oct 21 10:47:53 UTC 2017


Hi,

On 20.10.2017 16:20, Andy Meneely wrote:
> What other conditions might you get a CAIRO_STATUS_WRITE_ERROR on a
> cairo_write_to_png
> call?

looking through src/cairo-png.c, I find:

- Trying to write a surface with width or height 0
- When opening the output file fails (fopen())
- When fwrite() to the output file fails, i.e. ferror() returns non-zero
- When closing the output file fails (fclose())

Cheers,
Uli
-- 
Happiness can't be found -- it finds you.
 - Majic


More information about the cairo mailing list