nanogui: Nano-X: system load increases?


Previous by date: 11 Feb 2003 04:59:16 -0000 NanoGUI on MCF5272 with Matrix Orbital display?, Jay Vaughan
Next by date: 11 Feb 2003 04:59:16 -0000 Re: [nanogui] Nano-X: system load increases?, Klaus Fürth
Previous in thread: 11 Feb 2003 04:59:16 -0000 Nano-X: system load increases?, Klaus Fürth
Next in thread: 11 Feb 2003 04:59:16 -0000 Re: [nanogui] Nano-X: system load increases?, Klaus Fürth

Subject: Re: [nanogui] Nano-X: system load increases?
From: "Greg Haerr" ####@####.####
Date: 11 Feb 2003 04:59:16 -0000
Message-Id: <003a01c2d189$14ad6d70$220110ac@WasatchNewport>

> I'm using microwindows 0.89 with pcf fonts on a ppc embedded system with 
> framebuffer. Everything is fine, but after a few hours (during this time 
> my program uses the GrText() function to redraw some data) nano-X seems 
> to get slower (the drawing of texts get slower). The freeram (I've used 
> the sysinfo function to get this data) decreases, the system load 
> increases.
> Are there any lists or buffers in nano-X which are continously growing 
> and which I can keep smaller?

Sounds like there's a memory leak.  I'll bet your
code opens the font with GrCreateFont and
then draws, then destroys the font?

It might be interesting to try the following, to help debug:

1. GrCreateFont using a built-in font, and see whether you
still have a memory leak.  If so, it's likely in your program.

2. Otherwise, we've likely got a leak in the pcf reader,
and the destroyfont function probably doesn't release
all the memory.  A quick review of engine/fonts_pcf.c
should determine this.

Regards,

Greg

Previous by date: 11 Feb 2003 04:59:16 -0000 NanoGUI on MCF5272 with Matrix Orbital display?, Jay Vaughan
Next by date: 11 Feb 2003 04:59:16 -0000 Re: [nanogui] Nano-X: system load increases?, Klaus Fürth
Previous in thread: 11 Feb 2003 04:59:16 -0000 Nano-X: system load increases?, Klaus Fürth
Next in thread: 11 Feb 2003 04:59:16 -0000 Re: [nanogui] Nano-X: system load increases?, Klaus Fürth


Powered by ezmlm-browse 0.20.