|
It's the program itself that has this flag, to tell the OS that it's able to address more than 2GB.
And why would the program not be able to address more than 2GB?
|
|
|
|
|
Maybe it assumes pointers are positive. But it doesn't matter, regardless of the reason, if it doesn't set the flag then it's not getting 4GB of space. And even that doesn't matter, VS has it set.
|
|
|
|
|
Historical reasons I'd say.
On Windows NT they split the addressable memory between Kernel and program, 2GB each. No flags or switches. Just 2GB.
So, what pointer would you use if you want to stay within those 2GB? The OS just needs to check the sign if it is an intptr.
Now enter the guys at MS Exchange, they were quite unhappy with the limitations enforced on them. The customers didn't want to buy the Datacenter version of Windows 2000 just to get a few more usable GB.
So on Server 2003 they added the /3GB switch, but to make sure the OS makes the right checks they also had to add the /LARGE_ADDRESS_AWARE flag.
|
|
|
|
|
harold aptroot wrote: Maybe it assumes pointers are positive.
Generally the other way around. Something like this bricks if points are allowed to go above the 2GB limit.
int* GetFooPtr()
{
}
Initially MS tried making /3gb work on all apps on 32bit OSes and allowing 4gb for 32bit apps on 64bit OSes; but crap code like the above vomited all over the place enough times that they quickly had to backtrack and make it per app opt in.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
I've been guilty of that sort of thing myself..
|
|
|
|
|
Somehow - but not really. On 32 bit system the OS can address 2^32 = 4 GB of spaces, but MS used signed types of "legacy reason".
But as others wrote deleting the cache and restart is a good way.
I also delete the sdf file in the solution directory as it getting bigger and bigger.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
|
In all the years that I have used Visual Studio, I have never encountered this issue, ever. BTW, I do not have 32 gigs of memory.
I would first suggest that it is NOT visual Studio's fault, but rather another application(s) and/or processes running in the background that is the culprit. Innocent until proven guilty.
When you close VS and all VS related processes, how much memory is freed. TaskManager is your friend.
|
|
|
|
|
Cornelius Henning wrote: I wonder if it has something to do with the fact that VS is a native 32 bit application, and 32 bits can only address 4GB? Yep.
I think there is a method for a 32 bit process to access more than 4GB, but I believe it's not straightfoward.
Cornelius Henning wrote: why Microsoft does not have a 64 bit version Why?
0) Performance,
1) Performance,
2) Performance,
3) Most people don't need more than 4GB.
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Thanks to all who have responded. I now have a few things to try!
How do we preserve the wisdom men will need,
when their violent passions are spent?
- The Lost Horizon
|
|
|
|
|
No mods required. Vanilla Minecraft! Impressive - both that he did it, and that he actually thought of this.
|
|
|
|
|
I envy him to have so much spare time to waste...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
If you are passionate enough about something, you can always find time to do it. Most people waste several hours a day doing nothing of value
|
|
|
|
|
Nish Nishant wrote: Most people waste several hours a day doing nothing of value
|
|
|
|
|
... and in my experience, most of that group are software developers.
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
He's making a living off Youtube views...
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
|
Yeah, no kidding
|
|
|
|
|
Nish Nishant wrote: Impressive
Nah, McGyver would have done it with a gearbox, a torn shirt, 3 paper clips, and a meatball sub.
I am not a number. I am a ... no, wait!
|
|
|
|
|
I'm not going to look, but I seem to recall seeing a video of a Minecraft Turing Machine a few years back.
|
|
|
|
|
Any idea on what's involved in getting started in minecraft programming?
If it's not broken, fix it until it is
|
|
|
|
|
Well, the first step is to give up hopes of ever getting laid again. After you accept that, you're well on your way.
Jeremy Falcon
|
|
|
|
|
In vanilla Minecraft? Basically just a computer, a copy of Minecraft, and a straight-jacket.
Programming even basic circuits in vanilla is so needlessly complex that attempting to build anything non-trivial is tantamount to madness. This is mainly due to the fact that redstone dust only sits on surfaces, making wiring things above and below each other require staircases to carry the signal.
There are however mods that make things easier, such as redpower, which add individual blocks that function as OR/AND/NAND/XOR gates and etc., as well as adding things like redwire which supports running wiring up sheer walls and crossing wires without crossing signals. These really help reduce the complexity of devices (in size and blocks required at least.)
I have to imagine that anyone building anything of significant size like this would be using a world editor instead of attempting to build directly in game. The simple ability to copy and paste existing structures really streamlines the building process (and helps with refactoring when you realize you have one redstone torch out of place in 64 different locations...)
|
|
|
|
|
|
So that's what they mean when they say doctors are unusually attractive? I feel such a fool.
I am not a number. I am a ... no, wait!
|
|
|
|