VS.NET 2003 consume 150MB of physical memory !!!!HELP!!

  • Thread starter Thread starter Ms.net
  • Start date Start date
In particular, VS:NET has one appdomain, and runs everything in it - even
the debugger.

As a result, any dll loade can never be removed. Every time you start
"debug" and it recompiles, new dll's are loaded -(

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
 
The thing I found eats the most memory is when you in the IDE open a form,
close it, open it again and so on, if the form has many items on it, it goes
many kb each time.

- Fredrik
 
Yes, I have noticed it too.

Is Microsoft aware of this problem?

Carlos Quintero
 
They are. I talked to the person srespoponsible - they are aware of the
leak.

The issue is they only have one appdomain, so they can never unload the
classes. Everytime you open the editor again, basically ,another copy goes
into memory.

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
 
Hi Thomas,

I am not sure if they are related, but I was talking about the memory taken
and not released when, for example, you select all the forms and
usercontrols of a large project in the Solution Explorer (not sure if it
happens with code windows) and you right-click the Open context menu. When
you close all windows, the memory is not released. Are AppDomains involved
here? AFAIK, the IDE is not managed, except some portions. And you seem to
talk about debugged code...

The problem is important because any add-in that behind the scenes opens and
close the designers of all forms and usercontrols, causes the same leak...
did MS provide a fix, workaround or similar?

Thanks in advance,

Carlos Quintero
 
Carlos J. Quintero said:
Hi Thomas,

I am not sure if they are related, but I was talking about the memory taken
and not released when, for example, you select all the forms and
usercontrols of a large project in the Solution Explorer (not sure if it
happens with code windows) and you right-click the Open context menu. When
you close all windows, the memory is not released. Are AppDomains involved
here? AFAIK, the IDE is not managed, except some portions. And you seem to
talk about debugged code...

"Some Portions" include the complete design environment. Any addin that
opens/closes the designers works in managed code- the designers ARE managed.

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
 
Back
Top