delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/10/06:15:56

Date: Tue, 10 May 94 18:22:26 JST
From: Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
To: ronis AT onsager DOT chem DOT mcgill DOT ca
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, ghost AT aladdin DOT com, support AT qdeck DOT com
Subject: malloc under DV/X

Hi all. I'm using DV/X 2.0, QEMM 7.04, IBM DOS/V 5.02, 4DOS 5.0d on an
AMI 486/50MHz box.

According to: ronis AT onsager DOT chem DOT mcgill DOT ca (David Ronis)

   I use djgpp under Desqview/X.  For the most part, I use it when I
   need to access large arrays.  Thinks work correctly, but I've
   noticed that malloc allocates system memory irreversibly; for
   example, free doesn't seem to return the memory to the system

This is verified also for GhostScript 2.9.5 beta, I believe for other
versions of GhostScript but I haven't tried it.  I don't know for sure
that GS frees buffers after erasing an image (GS code is huge), but I
think it does, and Peter Deutsch told me that he doesn't think there
are such memory leaks; other systems don't report them.

   (DV/X) until the program exits, or if I have a large local array in
   a function, this memory is not returned to the system when the
   program exits.

I haven't seen this.

   Is this correct? If so, can it be overridden?

   David Ronis

Have you tried using DJGPP from DOS?  Under DPMI?  I will try these
later, but haven't got time right now.
    --Steve

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019