"Scott McFadden" <no**************@criticaltech.comwrote in message
news:uN**************@TK2MSFTNGP02.phx.gbl...
When I run my 32 bit VC 8 DLL hosted by a managed C++ Winform APP on
Win2003 32 bit with 4GB ram it runs fine. When I run the same DLL hosted
under a Managed C++ ASP.NET 2.0 Webservice project (also on Win2003 bit
with 4GM ram, the DLL fails). If i downgrade the box from 4GB of RAM to
2GB of RAM, the DLL works fine under IIS.
What kind of issue is this? Is this an IIS limitation, a Windows
limitation, or VC limitation?
Impossible to say without a much better description of "the DLL fails".
When the machine is configured with 4GB of memory, is it booting with /3GB?
If so, then it's possible that some address used by the DLL (could be code
or data) has an address above 2Gb, and that such a large address causes a
problem with some logic in the DLL. Such addresses will appear to be
negative numbers if accessed as an integer. (The possibility for such
errors is why there's a special linker flag /LARGEADDRESSAWARE to let a
process access user-mode memory about 2Gb).
-cd