[cairo] Detect Cairo Error in Cairomm

Talguy 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
> library.
> > I am trying to make a realtime instrument cluster for my car and need to
> be
> > 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
> inert.
>
> 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!
> -ickle
>
> --
> Chris Wilson, Intel Open Source Technology Centre
>



-- 
HAHA
   From Evan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100506/d4cf642f/attachment.htm>


More information about the cairo mailing list