Microsoft KB Archive/36323

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:21, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q36323 to Microsoft KB Archive/36323 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Segmentation Test Versus GlobalCompact(-1)

PSS ID Number: Q36323 Article last modified on 11-05-1993

2.03 2.10 3.00 MS-DOS

The information in this article applies to:
- Microsoft Windows Software Development Kit for Windows version 3.0

SUMMARY

Although a Segmentation Test within Heapwalk does a GlobalCompact(), it is not the same as performing a GlobalCompact() from within the application’s code. Performing a GlobalCompact(-1) from within the application’s code will remove all discardable segments except the currently executing code segment. Your code segment is locked in memory, and even if it is a discardable segment, it will not be discarded. When the Segmentation Test performs a GC(-1), it has control of the processor. Your code segment is no longer locked in memory, and if it is a discardable segment, it will be discarded.

Additional reference words: 2.03 2.1 3.0 KBCategory: KBSubcategory: KrMmGlobalmem Copyright Microsoft Corporation 1993.