Making the message classes immutable and cloning mutable references such as arrays at construction time would have prevented this problem.
使得消息类不可变并在构造时克隆像数组这样的可变引用,就可以防止该问题。
Accessing arrays, instance variables, and object references are not supported as of now.
目前不支持访问数组、实例变量和对象引用。
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.
哪怕及时释放掉了实际的对象,但WPF的弱引用数组还是会继续持有引用,这就导致了内存泄漏。
应用推荐