Solved

Getting System.OutOfMemoryException , how do I increase memory for my app?

Posted on 2008-06-24
3
1,221 Views
Last Modified: 2012-05-05
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.OutOfMemoryException: Exception of type System.OutOfMemoryException was thrown.

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2407
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
0
Comment
Question by:nj07869
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 27

Accepted Solution

by:
planocz earned 500 total points
ID: 21856531
Can you go into why you have to use large arrays.
It sounds like there maybe a beeter way to program your project to use less memeory.
0
 
LVL 25

Expert Comment

by:slam69
ID: 21856577
thats gotta be a huge array being built to use that much ram. that much VM is going to take a huge amount of time to access and read .

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
0
 

Expert Comment

by:johnwg2
ID: 22352548
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?

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question