🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #13447

Re: Mem eating

#13447
From: Michael Roper
Date: Sat, 14 Jan 1989 05:03
15 lines
941 bytes
Parker Waechter writes:

> An aplication I am writing seems to be holding 20K or so after the 
> program terminates (as checked by command window aboutbox). 

Use Heapwalker.  It comes with the Windows SDK.

> What is the difference between Local/GlobalFree and Local/GlobalDiscard?

*Free invalidates the memory handle if the function is successful.
*Discard just ReAlloc's the memory block to zero, but the handle
remains valid.  Note that *Free returns hMem if it fails and *Discard
returns hMem if it succeeds.

Mike Roper
Technical Details
Message-ID: <6945@june.cs.washington.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!cornell!uw-beaver!uw-june!roper
References: <33587@grapevine.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!cornell!uw-beaver!uw-june!roper
From: roper@june.cs.washington.edu (Michael Roper)
Newsgroups: comp.windows.ms
Subject: Re: Mem eating
Keywords: disgard free memory
Message-ID: <6945@june.cs.washington.edu>
Date: 14 Jan 89 05:03:56 GMT
References: <33587@grapevine.uucp>
Organization: U of Washington, Computer Science, Seattle
Lines: 15