The information in this article applies to:
SYMPTOMSThe GetFreeSpace API no longer returns the amount of free space on the global system heap. CAUSEBecause Windows 95 implements virtual memory, the system heap is effectively unlimited. Returning the practical amount of free memory would cause unpleasant side effects in applications that assume the return value is limited to physical memory. Therefore, GetFreeSpace returns the amount of free space on the heap -- up to the amount of physical memory in the computer. RESOLUTIONDo not depend on GetFreeSpace returning the amount of free space in the heap. It will not. STATUSThis behavior is by design. MORE INFORMATIONIn particular, GetFreeSpace does not work with code that loops as shown in this pseudo code:
This programming practice is not supported. Applications must share system
resources with each other. Applications can minimally use GetFreeSpace to
determine a reasonable amount of memory to allocate for the current
computer given their working set requirements.
NOTE: Win32-based applications should use GlobalMemoryStatus. Additional query words: 4.00
Keywords : kbKernBase kbMemory kbDSupport kbGrpKernBase |
Last Reviewed: December 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |