Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!europa.eng.gtefsd.com!howland.reston.ans.net!news.sprintlink.net!EU.net!sun4nl!cs.vu.nl!jjedeke
From: jjedeke@cs.vu.nl (Deken JJE)
Subject: Re: OS/2, ST/V, Parts and the Swapper
Message-ID: <CyIzC1.JoB@cs.vu.nl>
Sender: news@cs.vu.nl
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
References: <CyI7ts.MIv@cs.vu.nl>
Date: Mon, 31 Oct 1994 06:57:37 GMT
Lines: 50


Someone who forgot something wrote..
> 
This was me. One more time.........

Counting malloc and finding none. 
Or: free(all things we don't use, but we don't know which we don't use) 


Currently I'm working in a Smalltalk project team. Our application is 
almost user-ready, except for one tiny detail: the swapper, it's huge. 
In short:
Digitalk Smalltalk/V    (Has anyone the proper Warp fixes? > 2011)
+ Digitalk Parts        (Nice, but try building a Part with > 20 controls :(
+ Our own classes       (But these can't be the problem ;-)
+ OS/2                  (Linked to an AS 400 which is supposed to be a real 
                        neat machine. NOT)
+ A couple of hours     (If the image lives that long.)
=========================
swapper.dat > 40 MB (and worse, 90 MB) = unworkable.
This is on machines (486 DX2 66) with 20 MB and more.

The question: what is going on? The obvious answer is: check your
resources, references, dependents, instances etc. I did, and found  
out that some of our businessobject weren't properly released,
but this still doesn't explain mega MB (killing them doesn't realy help). 
Perhaps I didn't dig deep enough, the hidden Part _P and system ____ classes 
do seem to have some unexpected references. Could it be an an orphaned 
PMHandle or WindowHandle? 

So, the big Q: is it Parts (opening and closing a Part leaves you with more
intances)? Is it Smalltalk/V? Is it OS/2, PM, or after all, the way we use 
our objects?
Does anyone have 'uberhaupt' any problems with the swapper? 
Any hint is welcome, as our problem is getting more serious every 
day (the deadline was last friday as I recall).

BTW, has anybody a tool to browse the memory allocation in OS/2?. We
use OS20MEMU, but I guess better tools are available. 

Jeroen... 

PS, does anybody know a method to find out the byteSize of an object/instance,
any object!

-- 
   :-) email: jjedeke@cs.vu.nl
   :-< phone: (+31) [0]20 6624303  | 5135138
   ;-> mindmail: Beam your mindwaves between 22:15 and 5:15 GMT
                 at 4242'29" NL, 451' WL
