问题
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