Microsoft KB Archive/884190

= .NET applications may run out of memory when you run the applications in Visual Studio .NET 2003 =

Article ID: 884190

Article Last Modified on 5/21/2007

-

APPLIES TO


 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Professional Edition
 * Microsoft Visual Studio .NET 2003 Academic Edition

-





SYMPTOMS
When you run a Microsoft .NET application in Microsoft Visual Studio .NET 2003, the .NET application may run out of memory.



CAUSE
This problem occurs because the base load address for some Microsoft .NET Framework DLLs is in a location that does not have sufficient memory to run the DLLs.



RESOLUTION
To resolve the problem, use the Rebase utility to rebase the following DLLs to the preferred base addresses:
 * Diasymreader.dll
 * Cscompmgd.dll
 * Microsoft.visualbasic.dll
 * Microsoft.jscript.dll
 * Microsoft.vsa.dll

To rebase unmanaged DLLs, including the Diasymreader.dll file, run the following command at a command prompt: editbin /rebase:base=0x5DA10000 diasymreader.dll To rebase managed DLLs, including the Cscompmgd.dll file, the Microsoft.visualbasic.dll file, the Microsoft.jscript.dll file, and the Microsoft.vsa.dll file, follow these steps for each file:   Remove the DLL from the global assembly cache folder. To do this, run the following command at a command prompt: gacutil /u path/DLLName   Rebase the DLL. To do this, run the following command at a command prompt: rebase -b BaseAddressDLLName   Install the DLL in the global assembly cache folder. To do this, run the following command at a command prompt: gacutil /i path/DLLName 

The following table includes the DLLs and the preferred base addresses. Rebase these DLLs to the preferred base addresses.



STATUS
This behavior is by design.

