Microsoft KB Archive/303444

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

Article ID: 303444

Article Last Modified on 1/31/2007

-

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

-



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.

Additional query words: LoadLibrary DLL

Keywords: kbprb KB303444

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.