🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #207

Re: Heap Checking

#207
From: allan_mertner
Date: Thu, 10 Feb 2000 00:00
44 lines
2192 bytes
In article <86p14j$s8q$1@nnrp1.deja.com>,
  Robert AH Prins <prinsra@williscorroon.com>
wrote:

Hi,

[Memory leak detection]

> Under a really good OS there should be no need
for this. If the program
> runs in its own address space and terminates,
the OS should clean up
> after it if the program doesn't do so itself!
(Like MVS does!)

Of course.  However, it is still desirable that a
program has no memory leaks, particularly if it
should be running for a long time.

Using the Get/SetMemoryManager API of the Virtual
Pascal RTL, it is possible to install your own
memory manager - simply provide a GetMem, FreeMem
and ReAllocMem routine and you're done.  At its
simplest, this can be used to detect memory leaks
by having your routines simply sum all
allocations and de-allocations...

For initialisation, it is of course possible to
add initialization and finalization code to all
units - and the source for the RTL is included as
well.

For more info, please check out
http://www.vpascal.com, or write an e-mail to
vpascal@vpascal.com :)

Take care,
Allan Mertner




Sent via Deja.com http://www.deja.com/
Before you buy.
Technical Details
Message-ID: <87vej6$1on$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <86js5u$29k$1@nnrp1.deja.com> <ffvq8ske8bdvifb7aifubpeqal23s32dt7@4ax.com> <86kemk$f1v$1@nnrp1.deja.com> <ialr8soi9f73me4559hjt24ocjg7son4gs@4ax.com> <86mdcv$tp9$1@nnrp1.deja.com> <fjf.20000127014253@gnu.de> <86p14j$s8q$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10261c,536f7e41ae9de935
X-Google-Attributes: gid10261c,public
X-Google-Thread: 108ebd,b1ac468ba433a98d
X-Google-Attributes: gid108ebd,public
X-Google-Thread: 111659,6aa5a22c4c09a438
X-Google-Attributes: gid111659,public
From: allan_mertner@my-deja.com
Subject: Re: Heap Checking
Date: 2000/02/10
Message-ID: <87vej6$1on$1@nnrp1.deja.com>
X-Deja-AN: 584218403
References: <86js5u$29k$1@nnrp1.deja.com> <ffvq8ske8bdvifb7aifubpeqal23s32dt7@4ax.com> <86kemk$f1v$1@nnrp1.deja.com> <ialr8soi9f73me4559hjt24ocjg7son4gs@4ax.com> <86mdcv$tp9$1@nnrp1.deja.com> <fjf.20000127014253@gnu.de> <86p14j$s8q$1@nnrp1.deja.com>
X-Http-Proxy: 1.0 x25.deja.com:80 (Squid/1.1.22) for client 152.158.65.45
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Thu Feb 10 22:30:28 2000 GMT
Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.misc,borland.public.turbopascal
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; DigExt)