Click here to Skip to main content
15,912,205 members

Comments by BeStelios (Top 5 by date)

BeStelios 23-Sep-12 14:07pm View    
When i say there is a leak or that the Garbage Collector is simply leaving things behind because they are somehow referenced there is no possibility that my results are inaccurate.

Actually the fact that i created a question means that i have double,triple,x checked.

I know there is a leak because:
Program Starts at 70Mb.
After some scrolls up - down we go to 1.3 GB.
Then a collection is being executed and you can notice the memory Drops to 800-900 where it should be MAX 160-200.

Also keep in mind :
dc.DrawDrawing(PageDraw); // If i do not do this the memory taken increasing and decreasing within reasonable limits and time.
What are the reasonable limits ? -> Without the rendering the Memory with continuous scrolling reaches 400-450 and then drops to 120.

So somehow the drawing after used for render on the framework element is being referenced/weakreferenced EVEN when the element is no longer Visible and even when its property m_PageDraw is null.

*Edit: Also note that the GC might start when the limit is reached (x86 or x64) making the whole OS hang for 1-2 secs.
Rare cases have thrown "out of memory exception" too.
BeStelios 23-Sep-12 11:29am View    
Seriously...
http://msdn.microsoft.com/en-us/library/system.windows.media.drawing(v=vs.100).aspx
BeStelios 5-Sep-12 4:06am View    
Thanks for your help,
I did read the article yesterday before posting here.
However i didn't wanted to change my implementation by filtering the CollectionViewSource.

Anyway the problem lies elsewhere, I have found the solution and going to post it in a sec.

Thanks for your time
BeStelios 4-Sep-12 13:54pm View    
No this is not the case..
I don't want to get the Default View, i need to get about 4 Filtered Views from 1 ObservableCollection and this is the exact way i should be getting them as instructed by msdn.
BeStelios 4-Sep-12 13:54pm View    
Deleted
No this is not the case..
I don't want to get the Default View, i need to get about 4 Filtered Views from 1 ObservableCollection and this is the exact way i should be getting them as instructed by msdn.