Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

/3GB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 28 May 2005 00:28 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.