From: "Stephen Howe" Subject: Incorrect File under Watcom directory To: Date: Wed, 30 Sep 1998 03:39:25 +0100 Reply-To: "Stephen Howe" X-From-Line: sjhowe@dial.pipex.com Wed Sep 30 07:37 EET 1998 Received: from teeri.oulu.fi (teeri [130.231.48.141]) by ee.oulu.fi (8.8.8/8.8.5) with ESMTP id HAA04181; Wed, 30 Sep 1998 07:37:14 +0300 (EET DST) Received: from monsoon.dial.pipex.net (monsoon.dial.pipex.net [158.43.128.69]) by teeri.oulu.fi (8.9.1a/8.9.1) with SMTP id HAA19480 for ; Wed, 30 Sep 1998 07:37:10 +0300 (EET DST) Received: (qmail 91 invoked from network); 30 Sep 1998 04:37:08 -0000 Received: from userk872.uk.uudial.com (HELO default) (193.149.72.194) by smtp.dial.pipex.com with SMTP; 30 Sep 1998 04:37:08 -0000 Message-ID: <005201bdec2b$6b83f1c0$c24895c1@default> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Content-Type: text/plain; charset="iso-8859-1" X-Content-Length: 909 Lines: 29 Xref: stekt41.oulu.fi yo.x2ftp:3 X-Gnus-Article-Number: 3 Wed Sep 30 09:26:09 1998 Hi I provide support for Watcom C/C++ on the Sybase/Powersoft server as part of Team Powersoft. This is a good site with some fine collection of programming material. One file drew my attention, that is MEMTEST.ZIP. The author states that "memory is not consolidated" after using new/delete for a C++ DOS4GW program. By this he means that memory is not returned to the DPMI server. In this, he is correct. Memory is returned to the heap manager (as it is for all types of Watcom executables, Win16, Win32, DOS, OS/2 etc) waiting to be recycled. This is documented. However there is a function called _heapshrink() which if called will return all free memory at the end of the heap back to the DPMI server or OS. This achieves what the programmer wanted. I tried contacting him but it seems he has graduated from the University of Waterloo . Cheers Stephen Howe [TeamPS] (In search of excellence)