Hello,
I have the problem with allocation large array in C#. My array is largest
than 1GB of RAM. My computer has 1,5GB of RAM memory and windows is set to
use 2GB of virtual memory.
In c++ exist /LARGEADRESSAWARE switch, but in c# is isn't.
Can you help my.
Mattias Sjögren - 28 May 2005 05:28 GMT
>In c++ exist /LARGEADRESSAWARE switch, but in c# is isn't.
LARGEADRESSAWARE can be set on C# executables with Editbin.exe. I
don't know if that'll actually solve your problem though.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Willy Denoyette [MVP] - 28 May 2005 19:44 GMT
> Hello,
>
[quoted text clipped - 6 lines]
>
> Can you help my.
Using /3GB or /LARGEADDRESSAWARE won't help you (not in C++ or any other
language)
This will only give you more user virtual address space, but:
1. The virtual address space grows with 1GB, but this space is not added to
the free space below 2GB, that means that the total contiguous space doesn't
grow.
2. You are reducing the systems address space to 1GB, so this is something
you only do in very specific circumstances when a process needs a lot of
address space (not contiguous!).
Your only option is to change your design and create smaller arrays or try
using native C++ (not guaranteeds), or switch to a 64 OS.
Willy.