Application cannot access more than 4 GB on 64 bit processor

3

I am trying to run a memory intensive program which requires more than 4 GB memory. I am running it on a 64 bit processor, and I have 16 GB RAM (which is also visible to me). But the program crashes. So I am unable to use more than 4GB for one process on a 64bit processor. How do I solve this problem?

Edit: The thing is the processor is 64 bit and the OS supports a 64 bit processor. And I am trying to run C code which requires lots of memory as it's a video processing code. But it crashes when the memory required goes above 4 GB, even though 16 GB RAM is visible.

The operating system is Windows Server 2003.

nitin

Posted 2009-11-12T12:30:31.163

Reputation:

2Which operating system? Which compiler? – Harriv – 2009-11-12T12:33:00.503

3More details please, are you writing 32-bit or 64-bit app? 32-bit or 64-bit OS? – Artelius – 2009-11-12T12:33:18.287

1If you don't want to get this migrated to Super User, edit your question to make it clear that you're developing an application – ChrisF – 2009-11-12T12:37:29.417

I once had a software (Macromedia Fontographer, last version) that immediately crashed after starting, as soon as the PC (windows) had more than 1 GB of RAM. – Martin – 2009-11-12T12:54:33.670

Why do these questions end up on SU like this? Can't anybody edit them properly before migrating them? This whole question is a mess, frankly. – alex – 2009-11-12T13:00:12.870

To whomever cleaned up this question thread, thank you! – alex – 2009-11-12T13:02:47.330

No problem. I just deleted all the answers that should have been comments. Not much more that can be done. – BinaryMisfit – 2009-11-12T13:16:36.147

Is this an off-the-shelf application you are using, and if so, tell us. Is this a program you are writing yourself? If so, you probably have a bug in your code, like using a 32-bit datatype somewhere you should be using a 64-bit datatype. – davr – 2009-11-12T17:28:44.313

Answers

13

If your program is a 32-bit program, it won't be able to use more than 4GB, regardless of the processor or OS you run it on...

Do you know for sure that your program is compiled as 64-bit, and that you're running it on a 64-bit OS?

It's hard to tell from the question, but are you expecting to run some off-the-shelf software and have it use more than 4GB of RAM? That's not going to work unless it's specifically compiled for 64-bit, which most off-the-shelf Windows software isn't.

RichieHindle

Posted 2009-11-12T12:30:31.163

Reputation: 702

132-bit programs can only use 2GB of RAM (3GB on 32-bit OS/4GB on 64-bit OS with /LARGEADDRESSAWARE linking flag on) – phuclv – 2013-08-30T08:44:29.203