Re: Win32 Surface Mem increase and app crash

曹志鹏 <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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
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.