This repository was archived by the owner on Mar 30, 2019. It is now read-only.
This repository was archived by the owner on Mar 30, 2019. It is now read-only.
Memory Leak on WPF window size change event #826
Open
Description
I have created a WPF application on windows 10 64bit to test Direct2D and find out about this scenario. It is terrible because I wanted to use Direct2D to speed up the drawings on the canvas. With this bug, it is impossible, Just keep modifying the size of the window so the memory usage goes up absurdly. I saw that the problem is related to the dispose, it seems that the resources are not being destroyed.
Direct3D11Texture2D.Dispose ();
Direct3D11Texture2D = Null;
DXGISurface.Dispose ();
DXGISurface = null;
Direct2D1Factory.Dispose ();
Direct2D1Factory = null;
Direct2D1RenderTarget.Dispose ();
Direct2D1RenderTarget = null;