🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1398

Question about Memory Usage

#1398
From: Diptish Datta
Date: Thu, 22 Feb 1990 19:05
24 lines
1735 bytes
I have a TSR that will be invoked by the timer interrupt and at a certain
point in time, it will abort whatever the current process is and punch you
out to DOS. In other words, no matter what you are running, the TSR sits in
the background, and at a certain time kicks you out to DOS. (Why on earth 
would I want to do that? ... that's a whole different story)

Anyway, I'm using DOS interrupt 21h function 4Ch to terminate the current
process. It works fine for most cases. But when I'm running a graphics demo
program (FXSHOW or SOWPARTNER), it will punch me back to DOS ... but after
that I can not run the demo again. Most other programs work. COMMAND.COM
is still working (DOS commands work). But an editer I have also bombs out.

I think that the demo program is allocating memory that is not at its PSP
segment. So, those memory blocks are not getting deallocated.

Question is, is there a way to get a map, at any given time,  
of what memory blocks (segments) are allocated and who (what program) owns 
them?
Then maybe I can free those blocks allocated by my graphics program before
I murder it.

Any suggestions on this would be appreciated.

- Diptish Datta
Technical Details
Message-ID: <28054@vrdxhq.verdix.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!samsung!emory!mephisto!uflorida!haven!vrdxhq!datta
References: <3108@tutor.tut.fi>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!samsung!emory!mephisto!uflorida!haven!vrdxhq!datta
From: datta@vrdxhq.verdix.com (Diptish Datta)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Question about Memory Usage
Summary: How do I find Allocated Memory
Keywords: DOS, Memory Allocation
Message-ID: <28054@vrdxhq.verdix.com>
Date: 22 Feb 90 19:05:35 GMT
References: <3108@tutor.tut.fi>
Reply-To: datta@vrdxhq.UUCP (Diptish Datta)
Organization: Verdix Corporation HQ
Lines: 24