Hashtable Enumerator als Speicherfresser ?
- From: ch_pingel@xxxxxx
- Date: 23 Jan 2006 09:52:09 -0800
Hallo,
ich bin auf der Suche nach einem Speicherfresser. Jetzt habe ich mal
den CLR Profiler und den Memory-Profiler gefragt und beide meinen, daß
ein Hashtable-Enumerator nur die ganze Zeit neue Instanzen anlegt.
Allerdings nennt mir z.B. der CLR Profiler folgenden Allocation-Stack:
System.Windows.Forms.ListControl::SetDataConnection void (Object
System.Windows.Forms.BindingMemberInfo bool): 0,0 bytes (0,00%)
System.Windows.Forms.Application::Run static void
(System.Windows.Forms.Form): 3,2 kB (100,00%)
System.Windows.Forms.Application.ThreadContext::RunMessageLoop void
(int32 System.Windows.Forms.ApplicationContext): 3,2 kB (100,00%)
System.Windows.Forms.Application.ThreadContext::RunMessageLoopInner
void (int32 System.Windows.Forms.ApplicationContext): 3,2 kB
(100,00%)
System.Windows.Forms.Application.ComponentManager::System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop
bool (int32 int32 int32): 3,2 kB (100,00%)
System.Collections.Hashtable.ValueCollection::GetEnumerator
System.Collections.IEnumerator (): 3,2 kB (100,00%)
System.Collections.Hashtable.HashtableEnumerator : 3,2 kB
(100,00%)
<bottom> : 3,2 kB (100,00%)
Das sieht ja danach aus, als ob in dem Programm die Messages nicht
ordentlich abgefragt bzw. die Hastable mit den Windows-Messages nicht
ordentlich bereinigt wird.
Irgendjemand eine Idee, wo ich da jetzt was machen kann, damit jener
Enumerator auch mal wieder runter geht ?
MFG,
Christoph Pingel
.
- Prev by Date: Re: Artikel Liste erstellt
- Next by Date: ^PropertyGrid
- Previous by thread: Re: XAML / C# / C# Express - Wie anfangen ??
- Next by thread: ^PropertyGrid
- Index(es):
Relevant Pages
|