Article ID: 303444 - Last Review: January 31, 2007 - Revision: 1.5

PRB: Using MEM_TOP_DOWN Flag With VirtualAlloc May Cause DLL Loading to Fail

This article was previously published under Q303444
Expand all | Collapse all

SYMPTOMS

When you are using the MEM_TOP_DOWN flag with calls to VirtualAlloc, loading of a dynamic link library (DLL) may fail.

MORE INFORMATION

The MEM_TOP_DOWN flag causes VirtualAlloc to allocate memory at the highest possible address. An inadvertent side effect of using this flag is that it may cause attempts to load a DLL to fail. This is because DLLs are loaded at the high end of the process address space. If this address space is used up, there is no room to load a DLL.

APPLIES TO
  • Microsoft Windows CE 2.12 for the Handheld PC
  • Microsoft Windows CE 3.0 for the Handheld PC
  • Microsoft Windows CE Platform Builder 2.12
  • Microsoft Encarta Reference Suite 2001
Keywords: 
kbprb KB303444
 

Article Translations