Hi,

in my application (that is indeed an add-in for VS.NET 2003) I observe a
somewhat odd problem: all modal forms appear on the screen very slowly.
Performance counters say that the garbage collection occurs each time
ShowDialog is called. Frequently, GC in ShowDialog happens even in older
generations, so each modal form takes several seconds to appear!
Interestingly, when the same forms are shown modeless, GC is not triggered.
I reproduced this effect quite stably. Moreover, the effect seems to bear no
relation to the overall memory usage of the VS.NET application that is not
very high on small projects (in fact, CLR profiler reports only 8 Mb in
managed heap, and modal forms are still very slow!), and the machine on
which I tested it exhibits 1 Gb RAM.

So, my question is: what ShowDialog does that triggers GC?

Googl'ing did not shed light on the issue.


Any ideas on the origin of the problem will be greatly appreaciated.

Thanks in advance,
Dmitry

===================================
This list is hosted by DevelopMentor╝  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to