I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Help and support regarding PR:BF2 installation and in-game issues
jim1994
Posts: 191
Joined: 2008-04-13 17:02

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by jim1994 »

Do I have to redo this if Im reinstalling PR?
LeChuckle
Posts: 664
Joined: 2007-02-09 13:53

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by LeChuckle »

well, its only a matter of editing the BF2.exe so it shouldnt be a problem
jim1994
Posts: 191
Joined: 2008-04-13 17:02

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by jim1994 »

alright, thanks Lechuck.
*downloads PR again*
Filamu
Posts: 318
Joined: 2006-12-15 14:20

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Filamu »

Hope this works. Sometimes I get the memory crash, but normal CTDs are more often.
Thanks anyway! (now only EA needs to solve the CTDs :P )
kevman.
Posts: 5
Joined: 2009-05-24 18:22

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by kevman. »

thanks man, i think it worked :D


and thx for this, too
neftaly wrote:This reply might be a bit late to help, but to get to a different dir on a different drive do the following:

C:\> CD e:\somedir\
C:\> e:
E:\somedir\> ... there you go ...
Brummy
Posts: 7479
Joined: 2007-06-03 18:54

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Brummy »

I fricken love you :D I never could be arsed to do this, however now the game runs smooth on 100 FPS on all high instead of jumping to 40FPS with medium textures :D

Thanks!
Filamu
Posts: 318
Joined: 2006-12-15 14:20

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Filamu »

How will this work with the new patch? We got now the pr.exe. Can i use this fix on that file instead?
MAINERROR
Retired PR Developer
Posts: 1873
Joined: 2007-07-22 17:54

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by MAINERROR »

Works perfectly for me. Thanks a lot.
Whitty91
Posts: 14
Joined: 2008-05-31 01:29

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Whitty91 »

Just trying to help a friend through this problem, do you follow the steps on the bf2.exe or pr.exe from the above post it looks like you still use the bf2.exe but just want to check.
erfrag
Posts: 93
Joined: 2008-08-17 21:11

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by erfrag »

C:\Program Files (x86)\EA GAMES\Battlefield 2>editbin.exe /LARGEADDRESSAWARE BF2
.exe
'editbin.exe' is not recognized as an internal or external command,
operable program or batch file.
Image
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Rudd »

your probably mistyping it
Image
endy
Posts: 4
Joined: 2009-07-05 19:31

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by endy »

Have the same problem. Is not just this enough?
"Q: I am crashing to desktop when loading/changing levels.
Q: I am getting a lot of lag on levels.

A: The most common cause of this is that you are running out of memory (though there are other causes). BF2 was a memory intensive game, and PR only increases on that.

First, you can try lowering your video settings, in particular, Textures. If that doesn't help or fix your issue, you can try increasing your virtual memory.

If that STILL doesn't work, you can try patching your bf2.exe to allow it to use more than 2GB of memory. This is only useful if you indeed do have more than 2GB of memory. Firstly, you want to backup your current bf2.exe in your "C:\Program Files\EA Games\Battlefield 2" (default install location) folder. To do this, simply rename it from bf2.exe to bf2.exe.original. You should back it up incase you have any issues in the future. Now you need to download the patched bf2.exe. This can be found in THIS zip file (THIS one if your using the EA Downloader version) (If you get a virus warning, ignore it, just a false positive). Then simply extract it next to bf2.exe.original, and your good to go."
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Rudd »

'[R-DEV wrote:AncientMan;1055731']
A: The most common cause of this is that you are running out of memory (though there are other causes). BF2 was a memory intensive game, and PR only increases on that.

First, you can try lowering your video settings, in particular, Textures. If that doesn't help or fix your issue, you can try increasing your virtual memory.

If that STILL doesn't work, you can try patching your bf2.exe to allow it to use more than 2GB of memory. This is only useful if you indeed do have more than 2GB of memory. Firstly, you want to backup your current bf2.exe in your "C:\Program Files\EA Games\Battlefield 2" (default install location) folder. To do this, simply rename it from bf2.exe to bf2.exe.original. You should back it up incase you have any issues in the future. Now you need to download the patched bf2.exe. This can be found in THIS zip file (THIS one if your using the EA Downloader version) (If you get a virus warning, ignore it, just a false positive). Then simply extract it next to bf2.exe.original, and your good to go.
^fixed that for ya
Image
Raptor007
Posts: 61
Joined: 2009-05-28 22:05

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Raptor007 »

With the new 0.86 patch we're using PR.exe instead of BF2.exe, right? Is PR.exe already compiled with the LARGEADDRESSAWARE flag, or should we patch it with editbin.exe?
Ferron
Posts: 47
Joined: 2009-03-08 11:06

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Ferron »

Raptor007 wrote:With the new 0.86 patch we're using PR.exe instead of BF2.exe, right? Is PR.exe already compiled with the LARGEADDRESSAWARE flag, or should we patch it with editbin.exe?
Well, I tried it on the pr.exe (0860) and got rid of crashes... So, yes, it works with pr.exe either.
Raptor007
Posts: 61
Joined: 2009-05-28 22:05

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Raptor007 »

If anyone is using 32-bit Windows, in addition to tweaking bf2.exe/pr.exe you will also need to tell Windows to give more address space to applications (keeping less reserved for the kernel). By default, 32-bit Windows gives each process 2GB of address space, reserving 2GB for kernel memory. You can adjust this split to give more possible memory to large-address-aware programs.

To give applications 2.5GB, reserving only 1.5GB for the kernel, do this:
In XP, add the following to boot.ini: /3GB /USERVA=2560
In Vista/7, type this in a command prompt: BCDEDIT /set IncreaseUserVa 2560

People running any 64-bit Windows don't need to worry about this; your large-address-aware applications can already use up to 4GB each!
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Twisted Helix »

Er ... the pr.exe is just a shell guys. Patching it to be able to use more than 2GB is not necessary, I doubt it uses more than a few hundred kb. Its also a runtime compile, so its memory uses are governed by the CLR.

Its your BF2 exe that needs the patching as that is what is handling all the ingame memory.
Raptor007
Posts: 61
Joined: 2009-05-28 22:05

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Raptor007 »

Ahh, thanks for the tip! I was wondering about that. I mean, if PR.exe was a replacement for BF2.exe, then all the vBF2 bugs and limitations would be correctable. :wink:
Raptor007
Posts: 61
Joined: 2009-05-28 22:05

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Raptor007 »

One more thought: I just got kicked by PunkBuster because mods\pr\pr.exe did not match. So, do not use editbin to tweak pr.exe!
Arnoldio
Posts: 4210
Joined: 2008-07-22 15:04

Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Post by Arnoldio »

Ok, Ive used this twice so far, worked, no problems at all...During my time off, my bro reinstalled bf2, the moron he is, he just copied pr folder back in, at least it works so far but i cant get this thing going.

It says
'editbin.exe' is not recognized as an internal or external command,
operable program or batch file.

Ive had this when i didnt run it as the Administrator first time trying this, but now im doing exactly what the tutorial says but still get this...whats wrong?

PS. I am also sharpening a knife to slice my brothers throat....yes i get very pissed of when PR doesnt work properly.
Image


Orgies beat masturbation hands down. - Staker
Post Reply

Return to “PR:BF2 Support”