摘要: String能自动释放,在进行内存拷贝时需要进行手动释放。可以直接调用Finalize手工释放如:TGraphicHideTab 记录中声明的Caption:stringTGraphicHideTab = record Image:Integer; Data:Integer; Size:Integer; /// 绘制时使用的尺寸 Caption:string; /// = 0) and (AIndex < FCount) then begin Finalize(FItems[AIndex]); // <-- 手工释放Record中... 阅读全文
posted @ 2014-03-14 16:10 cmacro 阅读(1044) 评论(0) 推荐(0) 编辑