以前的一篇文章“用弱引用堵住内存泄漏”给出了一些有用的技巧。
A previous article, "Plugging memory leaks with weak references," offers some helpful techniques.
哪怕及时释放掉了实际的对象,但WPF的弱引用数组还是会继续持有引用,这就导致了内存泄漏。
Even when the actual objects are being released in a timely manner, WPF's arrays of weak references hang around and under stress become the memory leak.
应用推荐