Threads hold on to memory
Have problems with multiple threads that dont´t release memory.
Im creating pfd charts from data.
The arrangement is that i loop throw the data objects.
Foreach dataobject i create manualrestevent, add it to a waithandles.
Starts a dispatcher with begin invoke, and adds the Manualresetevent.

Then i have Waithandle that do waitall for all waithandles.

The problem is that the i will not let go of the memory, i just builds up and och finaly i get memory out of exception.

Im not loocking for a solution, just loocking if anyone have i good idea what the problem can be.

Running on an WPF 3.5.

Thanks
  

Threads hold on to memory
===

Have problems with multiple threads that dont´t release memory.
Im creating pfd charts from data.
The arrangement is that i loop throw the data objects.
Foreach dataobject i create manualrestevent, add it to a waithandles.
Starts a dispatcher with begin invoke, and adds the Manualresetevent.

Then i have Waithandle that do waitall for all waithandles.

The problem is that the i will not let go of the memory, i just builds up and och finaly i get memory out of exception.

Im not loocking for a solution, just loocking if anyone have i good idea what the problem can be.

Running on an WPF 3.5.

Thanks
  
