Well, after a quick look through appmgr/global.c I isolated the memory leak to the 
panel's app_info structure. When an application is registered, an app_info structure 
is saved with the registration info such as its name, owner, type, and widget.  This 
structure is freed on app exit, but not when the app is explicitly deleted or put out 
of context, therefore causing exactly 1 allocation (but no handles) to leak per 
open/close cycle of that panel test I posted.

I'll fix this soon... Just need to have the widget delete function check for an 
app_info node if it's a root widget

On Fri, 30 March 2001, Philippe Ney wrote:

> 
> Hi Micah,
> 
> We want to make a 'finder' (Mac) as follows:
> - the main app has to contain a toolbar and a background
>   with img+text buttons.
> - when a button is pressed the background must disappear
>   (but the toolbar has to stay displayed) and let the
>   graphical place for the launched app (with a vfork).
> - we don't want the app to have a panel bar but it
>   should be closed through a button in the toolbar
>   that must act as 'back to finder'.
>   (By the way, I tried the 'disable panel bar' option
>    of the widget but don't succeed in making it working.
>    Does it work?)
> - and when the app is closed, the background must be
>   rendered again.
> 
> By now, I've been trying to make it by using the followings ideas:
> - a toolbar app that 'fork' a child app containing
>   the background.
> - a button pressed in the finder exits it and load
>   the chosen app.
> I have to make this 2 apps to make the finder because
> I don't know how to make one app free part of the
> graphical place it uses 
> And that way, the finder is a child process and we
> want it to be part of the parent.
> 
> We thought about:
> - possibility for one app to free the graphical place it takes
> - resizing of one app at runtime by the program
> 
> Do you have any tips?
> 
> Cheers,
> Philippe
> 
> 
> 
> +-------------------------------+
> | +-------+ +-------+ +-------+ |
> | | App 1 | | App 2 | | App 3 | |
> | +-------+ +-------+ +-------+ |
> | +-------+ +-------+ +-------+ |
> | | App 4 | | App 5 | | App 6 | |
> | +-------+ +-------+ +-------+ |
> | +-------+ +-------+ +-------+ |
> | | App 7 | | App 8 | | App 9 | |
> | +-------+ +-------+ +-------+ |
> | +---------------------------+ |
> | | +--------+                | |
> | | | FINDER |                | |
> | | +--------+                | |
> | +---------------------------+ |
> +-------------------------------+
> 
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/pgui-devel

--

Only wimps use tape backup: _real_ men just upload
their important stuff on ftp, and let the rest of the
world mirror it ;)
  -- Linus Torvalds


_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to