Article View: comp.sys.amiga.tech
Article #10791Checking on resources during development (was: Re: CloseFonts() problems)
From: Kim DeVaughn
Date: Tue, 03 Jan 1989 07:28
Date: Tue, 03 Jan 1989 07:28
31 lines
2043 bytes
2043 bytes
In article <10191@well.UUCP>, ewhac@well.UUCP (Leo L. Schwab) writes:
>
> Checking to see if everything get returned can be a bit of a pain,
> particularly if you're working out of VD0: (which is not to slander VD0:).
> My test cycle is: avail, <program>, avail. If the program opened
> previously unopened libraries, then I do another <program>,avail cycle and
> check the numbers. In VD0:, this can be a problem, because it likes to free
> up memory "every so often". Thus, I often find myself saying "dir >NIL: :
> OPT A" to try and make it happen more often so that the avail numbers don't
> say I have more free memory that I started with.
I use a similar "avail cycle" to yours, Leo, but every once in awhile, I also
force expunges to happen before and after the cycle. Just to check that I'm
properly CloseLibrary()"ing, etc. everything ...
BTW ... to anyone that uses the Dillon/Drew "shell" ... before using an "avail
cycle" to check on memory deallocation, do a "set _path 0", so the command
history stack's memory alloc/free's won't get mixed in with your testing (as
commands flow off the end of the history stack, memory can be free'd by "shell").
Dunno if any of the other shells behave this way, but it is something to keep
in mind ...
/kim
--
UUCP: kim@amdahl.amdahl.com
or: {sun,decwrl,hplabs,pyramid,uunet,oliveb,ames}!amdahl!kim
DDD: 408-746-8462
USPS: Amdahl Corp. M/S 249, 1250 E. Arques Av, Sunnyvale, CA 94086
BIX: kdevaughn GEnie: K.DEVAUGHN CIS: 76535,25
Technical Details
Message-ID:
<e9Tli04xoj1010135p.@amdahl.uts.amdahl.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!amdahl!kimReferences:
<3599@tekig5.PEN.TEK.COM> <10097@well.UUCP> <10191@well.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!amdahl!kim From: kim@uts.amdahl.com (Kim DeVaughn) Newsgroups: comp.sys.amiga.tech Subject: Checking on resources during development (was: Re: CloseFonts() problems) Message-ID: <e9Tli04xoj1010135p.@amdahl.uts.amdahl.com> Date: 3 Jan 89 07:28:50 GMT References: <3599@tekig5.PEN.TEK.COM> <10097@well.UUCP> <10191@well.UUCP> Organization: Amdahl Corporation, Sunnyvale, CA 94086 Lines: 31