我正在创建新的字节数组,这些数组不是由GC收集的,而是存在于内存中并增加了专用字节.下面的代码每10秒执行一次.完成后如何明确清除变量?
byte[] outputMessage = new byte[10000]; //Do some work here
.net c# garbage-collection memory-leaks memory-management
.net ×1
c# ×1
garbage-collection ×1
memory-leaks ×1
memory-management ×1