Path: 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 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