1.程序生成目标平台设为x64
2.文件写入后主动回收内存
C# 解决datatable写入文件内存溢出问题
原文:http://www.cnblogs.com/password1/p/6877660.html