dispose

About this tag
The dispose tag on WindowsForum.com covers discussions about properly releasing resources in Windows and .NET applications, particularly when working with streams, bitmaps, and file I/O. A common issue is timing the Dispose call to avoid memory leaks without disrupting ongoing operations, such as when loading images asynchronously. Developers share code examples and best practices for managing disposable objects in C# and UWP, emphasizing the importance of disposing resources only after dependent operations complete. The tag also touches on related patterns like using statements and BitmapCacheOption to control resource lifetime.
  1. H

    Windows 8 Images are displayed randomly

    Hi, I am loading images manually in my code as follows: When I call inStream.Dispose sometimes the images are not displayed. It seems that the file is disposed before the bitmap image completed to copy it. When should I dispose my fine in order to avoid memory leaks? private...
Back
Top