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



The information in this article applies to:

  • Microsoft Windows CE Operating System, Versions 2.12
  • Microsoft Windows CE Operating System, Versions 3.0
  • Microsoft Windows CE Platform Builder 2.12
  • Microsoft Windows CE Platform Builder 3.0

This article was previously published under Q303444

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.

Modification Type:MinorLast Reviewed:8/18/2005
Keywords:kbprb KB303444