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

T

Thomas Tomicek [MVP]

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)
 
F

Fredrik Melin

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
 
C

Carlos J. Quintero

Yes, I have noticed it too.

Is Microsoft aware of this problem?

Carlos Quintero
 
T

Thomas Tomicek [MVP]

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)
 
C

Carlos J. Quintero

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
 
T

Thomas Tomicek [MVP]

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top