TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Evgenie Tivaniuk
NA
82
11.8k
Need to release memory from unused images (Dispose?)
Sep 11 2017 4:14 AM
Hello,
I am making a game, and want to unload images when they aren't needed.
For now I am just setting their sources to null:
imgExample.Source = null;
But this isn't enough.
I already tried Freezing, but it doesn't seem to help much.
I read that their is such thing like "Dispose()" that seem to unload all the memory, in such cases, but I don't know how to use it.
I tried:
imgExample.Dispose();
But it didn't work, it seems I am missing either some kind of variable, or a using directive.
What can be done in this situation?
Reply
Answers (
4
)
change default theme of telerik:StyleManager.Theme="Windows
How to print pdf file without opening it in wpf.