I’m developing an application which import a lot of data, in some paralells thread.
Sometimes I got the OutOfMemoryException(when I use something like 1.5, 1.7GB of ram).
No big deal, I thought that I will make this a 64bit program(because it’s not so huge). But because of a .Net bug(cannot have a primary key in decimal in 64 bits), I just cannot make a 64 bits program.( description of the problem and I found many other case. And I just can’t change anything in this database, not even a type or add a view).
I don’t need a lot more than the 1.5-1-7GB of RAM. If only I can reach something like 2.5GB, I will be happy.
I read something about the “LARGEADDRESSAWARE”, but I didn’t find where to set it on my visual studio, and most of other tips where saying that I should modify the boot.ini file.
But since my computer is already a 64bits computers(with something like 8GB of ram), I don’t think I’ve to do something here.
So what should I do to get access to those 3GB of ram?
Use editbin to set LARGEADDRESSAWARE flag like suggested in Can I set LARGEADDRESSAWARE from within Visual Studio?.
You need to run x64 version of Windows or as you’ve mentioned for 32bit system change Boot.ini to allow apps use 3Gb of address space with /3GB switch.