Win32 Surface Mem increase and app crash

"小帅猪" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[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
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.