释放内存

MAX运行大批量循环的时候容易出现内存爆掉的情况,所以需要注意在循环里加入释放内容的函数.

 

fn ReleaseMemory = ---------释放内存
(
GC()
freesceneBitmaps() --释放位图碎片 -- Frees up all the memory used by the image file bitmap caches. This is useful if memory is fragmented with a lot of different bitmaps and you want to have just the ones currently active reloaded.
)

原文地址:https://www.cnblogs.com/guilt/p/4445542.html