[cairo] Out of memory when creating a large pdf

Benjamin Otte otte at redhat.com
Wed Jul 14 03:10:49 PDT 2010

On Tue, 2010-07-13 at 20:26 -0700, Lufy D.Monkey wrote:
> As long as you are using the Visual C++ I guess you can put the
> break-points on all the lines that contains the
> "CAIRO_STATUS_NO_MEMORY" returns in the cairo-pdf-surface.c and catch
> the error.

For catching an error inside Cairo, set a breakpoint on the
_cairo_error() function. This is an internal function that we are sure
to call whenever an error happens.
So there's no need to fiddle with weird breakpoints in lots of places,
just one breakpoint is enough.


More information about the cairo mailing list