Re: (no subject)

Alex Shulgin <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAM-UEKRNnGQxde6FpnkqKGjwQq0XMz=jjmxWuftQnOXWHSEcxw@mail.gmail.com>
On Thu, Feb 9, 2012 at 14:16, Mj Mendoza IV <[email protected]> wrote:
> Hi all,
>
> I'm having problem with cairo_surface_free.  My app crashes with this
> message:
>
> Assertion failed!
> Program: ...
> File: cairo-surface.c
> Line: 637
> Expression: CAIRO_REFERENCE_COUNT_HAS_REFERENCE(&surface->ref_count)
> What my app does is LOAD some textures (via
> cairo_image_surface_create_from_png), then FREEs them up just fine,
> then LOAD other textures, then FREEs them up again but this time I get a
> crash.
>
> I tried using cairo_surface_get_reference_count to determine how many are
> referencing on the surface.  Everytime the value is 0, I get a crash.
>
> Can someone enlighten me with this crash and how to fix it?

Yes, if you post a stripped-down test case source file for others to
look at or reproduce your problem.
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.