473,322 Members | 1,501 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,322 software developers and data experts.

Bug? : Large amount of memory used while debugging.

I am debugging a small app that normally runs in a few MB. When
debugging the code below, my app bloats to 1GB (and more if I let it).
Assembly[] ara = AppDomain.CurrentDomain.GetAss*emblies();
foreach( Assembly a in ara )
{
System.Diagnostics.Debug.Write*Line( ">>>" + a.FullName );
System.Diagnostics.Debug.Write*Line( " " + a.CodeBase );
System.Diagnostics.Debug.Write*Line( " " + a.ToString() );
System.Diagnostics.Debug.Write*Line( " " +
a.GetName().FullName );
System.Diagnostics.Debug.Write*Line( " " + a.GetName().Name
);
System.Diagnostics.Debug.Write*Line( " " +
a.GetName().Version );

}
The key to cause the bloat to occur is to have the variable "a"
expanded in the locals window (so it's properties are visible). I
haven't tried this on a completely stripped down app, but since our app

has just been started I suspect that same would occur. Has anyone else

experienced this? Even after F5ing the memory is not released.

Thanks,
Todd

Jul 22 '05 #1
2 1369
I am having difficulty reproing the issue with my own application. I see
about 70 MB max for one of my larger windows applications when running the
loop, even with locals open for a. Do you have a repro sample?

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"ts******@gmail.com" wrote:
I am debugging a small app that normally runs in a few MB. When
debugging the code below, my app bloats to 1GB (and more if I let it).
Assembly[] ara = AppDomain.CurrentDomain.GetAssÂ*emblies();
foreach( Assembly a in ara )
{
System.Diagnostics.Debug.WriteÂ*Line( ">>>" + a.FullName );
System.Diagnostics.Debug.WriteÂ*Line( " " + a.CodeBase );
System.Diagnostics.Debug.WriteÂ*Line( " " + a.ToString() );
System.Diagnostics.Debug.WriteÂ*Line( " " +
a.GetName().FullName );
System.Diagnostics.Debug.WriteÂ*Line( " " + a.GetName().Name
);
System.Diagnostics.Debug.WriteÂ*Line( " " +
a.GetName().Version );

}
The key to cause the bloat to occur is to have the variable "a"
expanded in the locals window (so it's properties are visible). I
haven't tried this on a completely stripped down app, but since our app

has just been started I suspect that same would occur. Has anyone else

experienced this? Even after F5ing the memory is not released.

Thanks,
Todd

Jul 22 '05 #2
I haven't created a stripped down app yet as it only seems to appear in
that one case so far (and I am done debugging it :). I will put
together a stripped down app over the weekend and get back to you with
the results (and post the app code if it reproduces).

Thanks,
Todd

Cowboy (Gregory A. Beamer) - MVP wrote:
I am having difficulty reproing the issue with my own application. I see
about 70 MB max for one of my larger windows applications when running the
loop, even with locals open for a. Do you have a repro sample?

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"ts******@gmail.com" wrote:
I am debugging a small app that normally runs in a few MB. When
debugging the code below, my app bloats to 1GB (and more if I let it).
Assembly[] ara = AppDomain.CurrentDomain.GetAss*emblies();
foreach( Assembly a in ara )
{
System.Diagnostics.Debug.Write*Line( ">>>" + a.FullName );
System.Diagnostics.Debug.Write*Line( " " + a.CodeBase );
System.Diagnostics.Debug.Write*Line( " " + a.ToString() );
System.Diagnostics.Debug.Write*Line( " " +
a.GetName().FullName );
System.Diagnostics.Debug.Write*Line( " " + a.GetName().Name
);
System.Diagnostics.Debug.Write*Line( " " +
a.GetName().Version );

}
The key to cause the bloat to occur is to have the variable "a"
expanded in the locals window (so it's properties are visible). I
haven't tried this on a completely stripped down app, but since our app

has just been started I suspect that same would occur. Has anyone else

experienced this? Even after F5ing the memory is not released.

Thanks,
Todd


Jul 22 '05 #3

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

Similar topics

36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
1
by: DJTB | last post by:
zodb-dev@zope.org] Hi, I'm having problems storing large amounts of objects in a ZODB. After committing changes to the database, elements are not cleared from memory. Since the number of...
6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
1
by: Robert May | last post by:
Hi, I am trying to execute some code compiled by g++ on Linux and have found that after some time, the program allocates a huge amount of swap space (250MB on my machine which has 512MB...
6
by: nilavya | last post by:
Hi, I have a C++ application for WINCE OS. The main attraction is the GUI. and all the events and commands of the user actions are sent from GUI. Now there are many features for that...
20
by: Hemant Shah | last post by:
Folks, I am using DB2 UDB 8.2 on AIX 5.1. How large of a bufferpool can you create? I tried to create a 4GB bufferpool db2 complained that is cannot allocate enogth memory. I have 16GB on this...
12
by: Sharon | last post by:
I’m wrote a small DLL that used the FreeImage.DLL (that can be found at http://www.codeproject.com/bitmap/graphicsuite.asp). I also wrote a small console application in C++ (unmanaged) that uses...
2
by: tstephan | last post by:
I am debugging a small app that normally runs in a few MB. When debugging the code below, my app bloats to 1GB (and more if I let it). Assembly ara = AppDomain.CurrentDomain.GetAss­emblies();...
17
by: byte8bits | last post by:
How does C++ safely open and read very large files? For example, say I have 1GB of physical memory and I open a 4GB file and attempt to read it like so: #include <iostream> #include <fstream>...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.