This attachement shows the memory creep being experienced (pressing Creator + Once + Destroy should give a baseline for running multiple times, however if I then press 200 times my memory goes from 26Mb upto 35Mb
and the highlights of my stackdump are
03d2efd4 201 24120 NationalInstruments.UI.Internal.b3
03d2e8b8 201 24120 NationalInstruments.UI.Internal.do
03d2ed5c 201 24924 NationalInstruments.UI.Internal.m
049fd108 201 25728 NationalInstruments.UI.Internal.b2
03c1ccfc 201 26532 NationalInstruments.UI.WindowsForms.Legend
03d2e36c 201 28944 NationalInstruments.UI.Internal.r
7a74d9c8 247 29640 System.ComponentModel.ReflectPropertyDescriptor
03c1742c 201 31356 NationalInstruments.UI.WindowsForms.WaveformGraph
049fcd94 201 32160 NationalInstruments.Restricted.LegendManager
7912c444 1 40016 System.Double[]
03d2d314 402 51456 NationalInstruments.UI.Internal.aq
03d2b160 402 51456 NationalInstruments.UI.Internal.cz
03d2ae20 402 51456 NationalInstruments.UI.Internal.ag
03d24dac 201 57888 NationalInstruments.Restricted.WaveformGraphManager
790fa3e0 932 214284 System.String
79124228 513 306324 System.Object[]
0018abf0 19 483648 Free
791242ec 2867 1069416 System.Collections.Hashtable+bucket[]
The finalizer is commented out but was being called for each instance.
Memory will eventually come back but it takes time (almost as if there's a timer holding onto it) and then it'll drop back to ~32Mb which is still a 6Mb increase (measured using Process Explorer).
Can someone tell me what I'm doing wrong ?
Thanks
Regards Paul