为什么 64 位程序执行同样的代码,比 32 位程序占用的内存要多(自己测试将近一半)?
資深大佬 : youla 2
//测试用到的代码 Task.Factory.StartNew(() =>{ for (int i = 0; i < 999999; i++){ int len = 255; IntPtr ptr = Marshal.AllocHGlobal(len); QueryFullProcessImageName(-1, 0, ptr, ref len); Console.WriteLine(Marshal.PtrToStringUni(ptr)); Marshal.FreeHGlobal(ptr); } });

门外汉
坐等摸鱼大佬
大佬有話說 (22)