Re: Pixmap + Memory Problem



Emanoel Guimaraes Martins Filho wrote:
> I'm trying to use a big pixmap (640x480) to show some
> estatistics, drawing rectangles and lines in the pixmap. The screen must be
> update each 5 seconds. However, the consume of memory reaches the size of
> the swap after some minutes and the program is aborted.

You should just be able to destroy the gtk_pixmap to free it up.

Another alternative is to use gtk_canvas. This does all of the hard
stuff for you, and should be much faster and better looking. Have a look
in the list archive for some links.

HTH, John




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]