nj07869
asked on
Getting System.OutOfMemoryException , how do I increase memory for my app?
Hello,
I am getting out of memory error (see below). My app needs to build large arrays and there is not easy way to go around it! When I see in task manager, the app is not going more than 1.7GB. The system has 2GB RAM and 1TB HDD. Even I assign 6GB VM, it still goes out of memory! How do I configure the system so my app can use lot more VM? Its XP Professional system. Interestingly, it does not go oom in debug mode!
************** Exception Text **************
System.OutOfMemoryExceptio n: Exception of type System.OutOfMemoryExceptio n was thrown.
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2407
CodeBase: file:///c:/windows/microso ft.net/fra mework/v1. 1.4322/msc orlib.dll
I am getting out of memory error (see below). My app needs to build large arrays and there is not easy way to go around it! When I see in task manager, the app is not going more than 1.7GB. The system has 2GB RAM and 1TB HDD. Even I assign 6GB VM, it still goes out of memory! How do I configure the system so my app can use lot more VM? Its XP Professional system. Interestingly, it does not go oom in debug mode!
************** Exception Text **************
System.OutOfMemoryExceptio
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2407
CodeBase: file:///c:/windows/microso
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have an x64 ultimate visa system. VB 2005
Have 8gb memory but get out of memory exception at same point as when I had 4 gb memory. The array should fit 4 time over into this space. Is there another answer to why I am getting this error?
Have 8gb memory but get out of memory exception at same point as when I had 4 gb memory. The array should fit 4 time over into this space. Is there another answer to why I am getting this error?
Are you using x64 or 32 bit windows, for the amount of memory you are looking to use you have to consider going to a 64 bit platform and upping your ram from 2 gb or alternatively like stated above look to reprogram and pull a smaller array,
You could increase your ram up from 2gb if you are using a 32 bit machine but you wont see a noticeable jump really you shoudl consider putting 2x2gb sticks in to get you up to the max the 32 bit OS will take