Re: Win32 Surface Mem increase and app crash

Petr Kobalíček <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAB2Z3Ofy6mw3=_hm0RQKYMSosaGMMdvUiTcJQvWEONQj-aDiCQ@mail.gmail.com>
Move cairo_destroy() before cairo_surface_destroy().

Best regards
Petr Kobalicek


On Sun, May 5, 2013 at 10:56 AM, 曹志鹏 <[email protected]> wrote:

> I solved it.
> Add cairo_surface_flush(surface) in the end.
>
> 在 2013-5-4,下午21:39,小帅猪 <[email protected]> 写道:
>
> > In MFC app, I add code in OnDraw();
> >
> > {
> >     cario_surface_t* surface =
> cairo_win32_surface_create(pDC->GetSafeHDC());
> >     cairo_t* cr = cairo_create(surface);
> >     //Draw something;
> >     cairo_surface_destroy(surface);
> >     cairo_destroy(cr);
> > }
> >
> > It works, but when redrawing like maxize window, the memory increase, in
> the end, the application crash.
> > Is there any problem? Help me.
> > --
> > cairo mailing list
> > [email protected]
> > http://lists.cairographics.org/mailman/listinfo/cairo
>
> --
> cairo mailing list
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo

-- 
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.