project reality header
Go Back   Project Reality Forums > Project Reality Support > PR:BF2 Support
PR Time:
Register Forum RulesDeveloper Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Support Help and support regarding PR:BF2 installation and ingame issues

Contact Support Team Frequently Asked Questions Register today!

Reply
 
LinkBack Thread Tools Display Modes
Old 05-20-2008, 12:14 AM   #1
R.J.Travis
Supporting Member

R.J.Travis's Avatar
Default I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

*** This solution is deprecated with the new BF2 v1.5 patch. It is not needed as the patch already contains this fix.

I found this fix.

I tested it and it work's! PB dose not kick you or anything I have not had 1 crash since I

tested on my 4 computers with 32 bit & 64 bit.

Thank you for making this a Sticky.


I found a fix for the "memory .dll error" that kicks some of us out to desktop every 2 or 3

map loads on certain servers, some more than others but from what I have been reading

this is a problem for a lot of people running Vista, myself included.

The problem is that the BF2.exe is trying to use more memory than it is allowed to, this

fix enables the BF2.exe to use more than it's current limit of 2gb (physical and PF

together) for the second or two it needs it during certain map loads.

Here you go

(You'll need to be an Administrator)
First, you'll need to grab and install Visual Studio C++ Express

from Microsoft
.


It's free so don't worry.

Once installed, you'll need to update it, also make sure u have latest game

patch installed.

Backup the bf2.exe file, just in case.


Now, click

Start ->Visual C++ 2005 Express Edition ->Visual Studio Tools ->Visual Studio 2005

Command Prompt
http://img.photobucket.com/albums/v448/sopdelta/C1.jpg

(Don't left click on VS 2005 command prompt though, right click on it and then click "Run as Administrator"

**If you don't run it as Administrator the fix will not work**

Then, once the black Command Prompt box is open, navigate to your battlefield 2

directory.

If you don't know how to navigate in DOS, follow this:
http://img.photobucket.com/albums/v448/sopdelta/C2.jpg

In Vista 32: cd c:\Program Files\ (Hit ENTER) **or** In Vista 64: cd c:\Program Files (x86)\ (Hit ENTER)

http://img.photobucket.com/albums/v448/sopdelta/C3.jpg
then usually it's "cd EA GAMES" (Hit ENTER)

http://img.photobucket.com/albums/v448/sopdelta/C3.jpg
then "cd Battlefield 2" (Hit ENTER)

NOW WRITE THIS
http://img.photobucket.com/albums/v448/sopdelta/C5.jpg

editbin.exe /LARGEADDRESSAWARE BF2.exe (Hit ENTER)

It should then come up with a "Microsoft copyright or trademark" type thingy, this means

it was successful.

Type "exit" and (Hit ENTER), and it's fixed for 64-bit users.
http://img.photobucket.com/albums/v448/sopdelta/C6.jpg

64 bit Vista users can now restart and play, but 32 bit Vista users follow the next step...

In a command prompt and once again **Run your command prompt "As Administrator"**
http://img.photobucket.com/albums/v448/sopdelta/C7.jpg

Type this command:
BCDEDIT /set increaseuserva 2900 ENTER
Now exit out of that box, restart and you're done!
http://img.photobucket.com/albums/v448/sopdelta/C9.jpg


Edited ATI card users will want to uninstall Visual Studio C++ Express from Microsoft after they complete this fix.

ATI Drivers will not update with Visual Studio C++ Express from Microsoft you can still do the fix just uninstall the program after words.
R.J.Travis is offline
Last edited by [R-DEV]AncientMan; 09-06-2009 at 12:29 PM.. Reason: Deprecated...
Reply With Quote
Old 05-20-2008, 12:19 AM   #2
[R-CON]creepin
PR:BF2 Contributor

[R-CON]creepin's Avatar
Default Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

i have this problem very seldom, (like 2 a year), and when you edit the binarys, doesn't PB kick you?


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
:Beauty is in the eye of the beholder.
TAP DAT ASS.
[R-CON]creepin is offline Reply With Quote
Old 05-20-2008, 12:21 AM   #3
R.J.Travis
Supporting Member

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

No PB will not kick you if you follow what it says i tested it on 4 computers & 20 public servers.
R.J.Travis is offline Reply With Quote
Old 05-20-2008, 12:23 AM   #4
[R-CON]creepin
PR:BF2 Contributor

[R-CON]creepin's Avatar
Default Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

ok, still. too much of a hassle for me, i can live without this fix, since the error appears too seldom to do this.
(yeah, i'm lazy)


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
:Beauty is in the eye of the beholder.
TAP DAT ASS.
[R-CON]creepin is offline Reply With Quote
Old 05-20-2008, 12:24 AM   #5
R.J.Travis
Supporting Member

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

It truly took me only 5m to do it was really easy.
R.J.Travis is offline Reply With Quote
Old 05-26-2008, 02:46 PM   #6
Sutaki
Default Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

I'm doing it with the 2008 version (9.0) and i can do everything up until that editbin.exe thing it tells me "'editbin.exe' is not recognized as an internal or external command, operable program or batch file." Help please!
Sutaki is offline Reply With Quote
Old 05-26-2008, 05:55 PM   #7
R.J.Travis
Supporting Member

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

Quote:
Originally Posted by Sutaki View Post
I'm doing it with the 2008 version (9.0) and i can do everything up until that editbin.exe thing it tells me "'editbin.exe' is not recognized as an internal or external command, operable program or batch file." Help please!
editbin.exe /LARGEADDRESSAWARE BF2.exe

type it just like that should work
R.J.Travis is offline Reply With Quote
Old 05-28-2008, 10:20 PM   #8
Mora

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

Can you not just upload the edited exe? it would be allot easier.


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
-

To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
Mora is offline Reply With Quote
Old 05-29-2008, 03:22 PM   #9
Hetzer
Default Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

Quote:
Originally Posted by R.J.Travis View Post
I found this in the PR forums under a name that did not tell the people what it fixed.

I tested it and it work's!!!! PB dose not kick you or anything I have not had 1 crash since I tested on my 4 computers with 32 bit & 64 bit.

you should re wright this and make it a sticky please.


I found a fix for the "memory .dll error" that kicks some of us out to desktop every 2 or 3 map loads on certain servers, some more than others but from what I have been reading this is a problem for a lot of people running Vista, myself included.

The problem is that the BF2.exe is trying to use more memory than it is allowed to, this fix enables the BF2.exe to use more than it's current limit of 2gb (physical and PF together) for the second or two it needs it during certain map loads.

Here you go

(You'll need to be an Administrator)
First, you'll need to grab and install Visual Studio C++ Express from Microsoft.
It's free so don't worry.
Once installed, you'll need to update it, also make sure u have latest game
patch installed.

Backup the bf2.exe file, just in case.

Now, click
Start ->Visual C++ 2005 Express Edition ->Visual Studio Tools ->Visual Studio 2005 Command Prompt
(dont left click on VS 2005 command prompt though, right click on it and then click "Run as Administrator"
**If you dont run it as Administrator the fix will not work**

Then, once the black Command Prompt box is open, navigate to your battlefield 2 directory.
If you don't know how to navigate in DOS, follow this:

In Vista 32: cd c:\Program Files\ ENTER **or** In Vista 64: cd c:\Program Files (x86)\ ENTER

then usually it's "cd EA GAMES" ENTER

then "cd Battlefield 2" ENTER

NOW WRITE THIS

editbin.exe /LARGEADDRESSAWARE BF2.exe hit ENTER

It should then come up with a "Microsoft copyright or trademark" type thingy, this means it was successful.
Type "exit" and hit ENTER, and it's fixed!

64 bit Vista users can now restart and play, 32 bit Vista users follow the next step...

In a command prompt and once again **Run your command prompt "As Administrator"**

Type this command:
BCDEDIT /set increaseuserva 2900 ENTER
Now exit out of that box, restart and you're done!

Ok, I've executed this fix (went without any of the problems mentioned above) and will report back with my findings once I've run the game. I'm hoping it'll stop the broken net connection problem I'm having, if that is memory related as I suspect.

If it works I'll post the exe for others to try.
Hetzer is offline Reply With Quote
Old 05-29-2008, 04:55 PM   #10
Hetzer
Default Re: I found a fix for the "memory .dll error" for vista 32 & 64 bit user's.

I made it through two maps without a hitch (no loss of conn), but CTD on the loading-bar for Sunset City.

The conn might be a coincidence or it might haved fixed that, I won't know until further testing (playing actually, who am I kidding ).

The CTD I can live with, I'm always able to get back in before everyone has deployed. It's the loss of conn that drives me up the wall, so fingers crossed this has at least had a positive influence on that (not holding my breath of course, it's a bit of a long shot).
Hetzer is offline Reply With Quote
Reply


Tags
bit, fix, found, memory dll error, user, vista
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:26 PM.


Powered by: vBulletin. ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO.
All Content Copyright ©2004 - 2012, Project Reality.