/3GB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
John said:
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.

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.
 
Back
Top