Re: [Pgui-devel] Memory problem with bitmaps

2003-09-05 Thread Nathaniel Smith
On Fri, Sep 05, 2003 at 07:01:48AM +0200, Nemec, Bernhard wrote: > > the menuitems is clicked. When i measure free memory in the > > system (using > > shell command free), i see that every opening and closing of > > the menu spends > > 4kB of memory. No memory is spent when there is no bitmap.

RE: [Pgui-devel] Memory problem with bitmaps

2003-09-04 Thread Nemec, Bernhard
> the menuitems is clicked. When i measure free memory in the > system (using > shell command free), i see that every opening and closing of > the menu spends > 4kB of memory. No memory is spent when there is no bitmap. You cannot use the "free" command to detect memory leaks. On Linux, unused

Re: [Pgui-devel] Memory problem with bitmaps

2003-09-04 Thread Micah Dowty
I haven't looked at this in depth yet, but pgLeaveContext should treat all handles equally. Every handle has a 'context number' attached. pgEnterContext increments the number assigned to new handles. pgLeaveContext finds all the handles with a matching context number and frees them. If you can, tr