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