[cairo] Detect Cairo Error in Cairomm
talguy385 at gmail.com
Thu May 6 10:07:18 PDT 2010
Are the exception that are thrown STL based.
On Thu, May 6, 2010 at 1:04 PM, Chris Wilson <chris at chris-wilson.co.uk>wrote:
> On Thu, 06 May 2010 12:46:53 +0000, TalGuy385 at gmail.com wrote:
> > How can I detect that a cairo out of memory error with the cairomm
> > I am trying to make a realtime instrument cluster for my car and need to
> > able to switch to a default less graphical screen if I run out of memory.
> cairo will go into an error state, that is the CAIRO_STATUS_NO_MEMORY will
> be set on the context (cairo_t) and probably the surface, after which no
> further operation on the context or surface will have any effect; they are
> The cairomm wrapper then checks the object error status after every call
> and throws an exception if an error is detected.
> Hope this helps and you are having fun using Cairo!
> Chris Wilson, Intel Open Source Technology Centre
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo