Newsgroups: comp.windows.ms.programmer Path: utzoo!utgpu!watserv1!daemon From: tom@mims-iris.waterloo.edu (Tom Haapanen) Subject: Re: 8 meg extended memory but only .8 meg in global heap? Message-ID: <1991Mar28.010405.9261@watserv1.waterloo.edu> Sender: daemon@watserv1.waterloo.edu Organization: University of Waterloo, WATMIMS Research Group References: <66LgZ2w163w@coyote.datalog.com> Date: Thu, 28 Mar 1991 01:04:05 GMT Lines: 14 fred jarvis writes: > GlobalCompact never returns more than .8 on our 486 system > with 8 meg extended memory. (This happens in an application > we are developing and in a slightly modified version of Petzold's > FREEMEM program from his book.) Doesn't GlobalCompact return > the amount of global heap space? Ahh, the same bug that stumped me, too. We used GlobalCompact() in our Win2 version; in Win2 it returns the size of the largest allocatable block, not the amount of free memory. To get the total free space, you should use GetFreeSpace()... [ \tom haapanen --- university of waterloo --- tom@mims-iris.waterloo.edu ] [ "i don't even know what street canada is on" -- al capone ]