473,385 Members | 1,282 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,385 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 1370
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>...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.