READ THIS ENTIRE THING VERY CAREFULLY, UNDERSTAND WHAT YOU ARE DOING BEFORE YOU START MESSING WITH STUFF, ESPECIALLY 32 BIT OPERATING SYSTEM USERS AS THIS CAN REALLY MESS YOUR ENTIRE SYSTEM UP IF YOU ARE NOT CAREFUL
First off, you should have at least 4gb of RAM for this.
Well I'm still getting out of memory issues quite early on in games and rather than wait for the leaks to be fixed I went and just allowed Elemental to use more RAM, which removes the out of memory issues.
If you have a 64bit OS then all you need to do is patch your game. If you have Windows XP then see the bottom of this post, though I haven't tested anything on XP so it may not work at all.
If you have 32bit Vista or Windows 7(IF YOU ARE RUNNING A 64BIT OS DO NOT DO THIS!!!) you need to go into command line and type
BCDEDIT /set increaseuserva 3072
This may have negative impacts on your overall system, so if you are running a 32bit OS, be aware... If you are running 32bit OS and have less
than 4gb of RAM, doing this is probably bad for your overall system experience.
Copy and paste your Elemental.exe into the folder this .zip extracts to. Elemental.exe must be in the same folder as this patch.
BACK UP YOUR ORIGINAL .EXE BEFORE YOU DO ANYTHING.
http://ai-machater.googlecode.com/files/ElementalRAMPatchzip.zip
After putting your Elemental.exe in this folder, run the file named "RunMe.bat"
On 32bit OS this will give Elemental 1gb more memory addressing space(not to be confused with how much memory the windows task manager says the program is using)
On 64bit systems this will double the amount of memory Elemental can address, up to 4gb.
You will probably need to repatch your game with this each time Stardock releases a new version. This will work with any version of Elemental.
If you have windows XP you need to change some boot.ini stuff. Refer to this microsoft article. I can't help you however since I haven't done any of this with XP before.
http://www.microsoft.com/whdc/system/platform/server/pae/paemem.mspx