/// <summary>
/// 释放内存
/// </summary>

GC.Collect();
GC.WaitForPendingFinalizers();
     

更多推荐