T
tstephan
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.GetAssemblies();
foreach( Assembly a in ara )
{
System.Diagnostics.Debug.WriteLine( ">>>" + a.FullName );
System.Diagnostics.Debug.WriteLine( " " + a.CodeBase );
System.Diagnostics.Debug.WriteLine( " " + a.ToString() );
System.Diagnostics.Debug.WriteLine( " " +
a.GetName().FullName );
System.Diagnostics.Debug.WriteLine( " " + a.GetName().Name
);
System.Diagnostics.Debug.WriteLine( " " +
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
debugging the code below, my app bloats to 1GB (and more if I let it).
Assembly[] ara = AppDomain.CurrentDomain.GetAssemblies();
foreach( Assembly a in ara )
{
System.Diagnostics.Debug.WriteLine( ">>>" + a.FullName );
System.Diagnostics.Debug.WriteLine( " " + a.CodeBase );
System.Diagnostics.Debug.WriteLine( " " + a.ToString() );
System.Diagnostics.Debug.WriteLine( " " +
a.GetName().FullName );
System.Diagnostics.Debug.WriteLine( " " + a.GetName().Name
);
System.Diagnostics.Debug.WriteLine( " " +
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