473,405 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

System.OutOfMemoryException with plenty of memory available

VS.NET 2002 (VB.NET) on Win XP.

Is there a known bug regarding .NET reporting System.OutOfMemoryException
when there is plenty of Virtual memory available?

My TaskManager shows 1237M / 2181M in use. Even the peak memory usage of
1391MB is nowhere near the limit.

I have 1.15GB physical memory ... remainder is System allocated Virtual
Memory / Swap Space.

Is this a bug or am I misunderstanding something?

Thanks
Harry

Nov 20 '05 #1
3 7112
Cor
Hi Harry,

I never saw this problem before in this or other newsgroup

I would search for a loop

Cor
Nov 20 '05 #2
I've expierienced this problem in VB6... Don't really know why this occurs,
but maybe its VB's way of saying a memory request has been denied for some
weird reason. I've found restarting the computer to solve the problem.

Andrew

"harry" <harry@nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
VS.NET 2002 (VB.NET) on Win XP.

Is there a known bug regarding .NET reporting System.OutOfMemoryException
when there is plenty of Virtual memory available?

My TaskManager shows 1237M / 2181M in use. Even the peak memory usage of
1391MB is nowhere near the limit.

I have 1.15GB physical memory ... remainder is System allocated Virtual
Memory / Swap Space.

Is this a bug or am I misunderstanding something?

Thanks
Harry

Nov 20 '05 #3
Thanks

I found if I closed down VS.NET, and then open again, I can get the routine
to run ok - this together with running the routine with a smaller set of
data without exception confirms it's not a loop problem. However, subsequent
running of the routine produces the problem again. It's like .NET can't
allocate memory fast enough. Perhaps because it's switching from RAM to
Virtual Memory. When the routine is run for the first time, slightly less
memory is used. It's like .NET won't allocate/release memory fast enough the
'next time' around.
"Andrew Christiansen" <no-spam> wrote in message
news:ea**************@TK2MSFTNGP10.phx.gbl...
I've expierienced this problem in VB6... Don't really know why this occurs, but maybe its VB's way of saying a memory request has been denied for some
weird reason. I've found restarting the computer to solve the problem.

Andrew

"harry" <harry@nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
VS.NET 2002 (VB.NET) on Win XP.

Is there a known bug regarding .NET reporting System.OutOfMemoryException when there is plenty of Virtual memory available?

My TaskManager shows 1237M / 2181M in use. Even the peak memory usage of
1391MB is nowhere near the limit.

I have 1.15GB physical memory ... remainder is System allocated Virtual
Memory / Swap Space.

Is this a bug or am I misunderstanding something?

Thanks
Harry


Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ryan Seghers | last post by:
I've got a program that has no user interface (like a service but not actually a Windows Service yet) in which I'd like to handle OutOfMemoryExceptions. I'd at least like to log the failure before...
0
by: Per Bergland | last post by:
After many woes, I finally managed to get a stack dump of my System Service (written in C#) that insists on crashing when launched at system boot time (see below on how to get this dump - I...
2
by: Ash | last post by:
Hi, I'm working on an application that takes csv files then converts it to XML. It then write the XML to a msmq where another service is reading the queue and sends it to the DB. My question...
1
by: Ripul Handa | last post by:
Hi We are running IIS 5.0 cluster with cisco local director. We are running a website on 2 webservers and I have been observing that from past few days we have are getting this error message of...
11
by: Stan | last post by:
There are several pages that occasionally start throwing System.OutOfMemoryException and another exception related to storage. The problem goes away after iisreset or terminating aspnet_wp.exe...
4
by: Baz | last post by:
Hi. I'm new to this VB.Net mullarkey, and I must say it is proving to be a very trying experience. Here is the latest in a long line of problems: The Scenario ========= I am building an...
6
by: chad | last post by:
assuming I have 2GB memory. And 1.5GB available. dim c1(,) as byte redim c1(1000, 1024*1024) throws system.outofmemoryexception. I'm like... huh? Initially I thought a lot of space is taken...
8
by: =?Utf-8?B?UGlnZ3k=?= | last post by:
Hi to all, I am getting this System.OutOfMemoryException calling the Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(<stream>,<Obj>) method. The type of <streamis...
4
by: Daniel | last post by:
is there some per-process-limit on memory in .net processes? is there any way to increase it? i keep getting System.OutOfMemoryException when my box has 8 gigs of unused memory.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.