Can a Console Application eventually run out of memory just by writing lots of Console.WriteLine

拜拜、爱过 提交于 2020-01-30 06:39:06

问题


Does anybody know?

For a heavy duty test I wrote a console application that I hope will run, problem free, for days. At least. This Console application will be writing lots of Console.WriteLine (about a line every 150 msec) to the console.

Do I have to worry about my memory at some point? Because consoles keep all text in memory. Or does Windows take care of what's written to the console somehow?


回答1:


In the properties, under Layout is a Screen Buffer Size that is set default to 9000 lines. That's all I needed to know.

Thanks @doug65536!



来源:https://stackoverflow.com/questions/40952594/can-a-console-application-eventually-run-out-of-memory-just-by-writing-lots-of-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!