阅读背景:

GC.Collect()是否处理Font(或任何已实现IDisposable的实例)对象.net 4.0 C#memory leak

来源:互联网 

I have a C# .net 4.0 user control which uses lots of fonts and graphics object. This control is opened and closed multiple times and it leak memory. I am calling GC.Collect in the Dispose of this control. My Question is if System.Graphics object for e.g. Font, Brush are used without "Using" or without Disposing it explicitly, is GC.Collect() going to clear that objects tool.I have a C# .net 4.0 user control which uses lo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: