// 在程序中加上这句,当退出时会报告内存泄漏 ReportMemoryLeaksOnShutdown : = True; 转载于:https://www.cnblogs.com/bsoom/archive/2009/11/14/1602846.html