User Defined Flags Are Not Reset When Using GlobalAlloc() to Allocate Memory

Article translations Article translations
Article ID: 289231 - View products that this article applies to.
This article was previously published under Q289231
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all


If a program that is running in Windows 2000 uses the GlobalAlloc function to allocate memory from the global heap, the heap for that program may not reset the user-defined flags.


This behavior occurs if the block is allocated from lookaside memory. That block may have the flags from the previous allocation, and the Global*/Local* APIs do not function properly.


To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack


Microsoft has confirmed that this is a problem in Microsoft Windows 2000.

This problem was first corrected in Windows 2000 Service Pack 2.


A "lookaside list" is a pool of fixed-size kernel memory buffers that the Windows 2000 kernel and device drivers create as private memory caches to serve specific purposes.


Article ID: 289231 - Last Review: October 23, 2013 - Revision: 3.2
  • Microsoft Windows 2000 Service Pack 1
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Service Pack 1
kbnosurvey kbarchive kbbug kbfix kbenv kbprogramming KB289231

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from