15,912,205 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.