Out of memory exception
Author: ivraju
Creation Date: 3/3/2010 5:58 PM
profile picture

ivraju

#1
I am running WLP5.6 on windows7 64-bit with 8GB RAM installed. When I do pricing update on dataset I am getting this error.

I did some reaserch on this found this:

Newer versions of Visual Studio have a new flag which make 32-bit apps "big address space aware". Basically what it does is says if it's loaded on a 64-bit version of windows, then it will get 4GB (the limit of 32-bit pointers). This is certainly better than the 2 or 3 GB you get on 32-bit versions of windows. See http://msdn.microsoft.com/en-us/library/aa366778.aspx

and follow to the link at bottom "4-Gigabyte Tuning": http://msdn.microsoft.com/en-us/library/bb613473(VS.85).aspx

Important points from the link:

"Setting this flag and then running the application on a system that does not have 4GT support should not affect the application.

On 64-bit editions of Windows, 32-bit applications marked with the IMAGE_FILE_LARGE_ADDRESS_AWARE flag have 4 GB of address space available."

So by setting this flag, we are not really harming WLP running on a less than 4GB RAM or 32bit OS, on the other hand 64 bit OS with more than 4GB installed then WLP can take advantage of 4GB RAM.

Link for what needs to be changed in Visual Studio: http://msdn.microsoft.com/en-us/library/wz223b1z.aspx

Link for programatically seting this flag in C# code: http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.vcprojectengine.vclinkertool.largeaddressaware.aspx

Can some one explain me why we are not setting this flag?

profile picture

Eugene

#2
Hi,

Actually, the thing about LARGEADDRESSAWARE has been known for a long time. And for some time, it was advised in the Wealth-Lab 5 Wiki FAQ to apply an NTCore utility so everyone could patch their WLP executable files. The WL creator, however, warned us about possible issues.

Here's just one of the issues that was found -- read the thread starting from the message by Dave Aronow at 1/7/2010 3:29 PM:

Dip buyer entry priorities
profile picture

Eugene

#3
P.S. The 64-bitness should come to WLP this Summer.
profile picture

ivraju

#4
Thanks Eugene.

I applied 4gb patch and since then I am not seeing the out of memory exception but every now and then I get a pop up saying that "Close all work spaces and shut down Wealth-lab?" with YES or NO. and 2 times it opened a strategy without my intervention 10 to 15 times in the same instance and hang up.

but when it runs normal the results looks OK, not seeing any problems there and the Graphs look ok too.
profile picture

Eugene

#5
Sounds like another good reason to stay away from the patch. Thanks for the info.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).