/3GB

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.
 
M

Mattias Sjögren

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
 
W

Willy Denoyette [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top