dwmkerr / dwmkerr/consolecontrol
Infinite buffer size
- Dominant language
- C#
- Stars
- 786
- Forks
- 166
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 1
Description
Hi,
First of all, thanks and congratulations for this excellent work!
I just found your CodeProject article about this control, and it turns out it's exactly what I was looking for (I arrived to it by googling "winforms embed console").
I'd like to use your control to run a console application that will run for a very long time (probably weeks of more if nothing wrong happens). This console application logs a lot of information, so before starting the integration I created a toy app to test your control memory usage.
The console app simply enters an infinite loop writing a line of text in each iteration.
When I run it from inside the ConsoleControl, the memory usage reported by VisualStudio started to increase rapidly (it reached 1GB in around 30 seconds).
Would you consider adding a property to limit the buffer size? I googled "richtextbox buffer size" and found an article that might be usefull for this: https://www.codeproject.com/Articles/34056/Controlling-the-Length-of-a-RichTextBox-in-C
If you're interested in adding this feature but don't have the time to do it, please let me know and I could try to fix it myself and send you a pull request.
I'm using the latest version as of this writing (1.2.1 added to my toy project using Nuget).

Best regards,
Santiago
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is named. Start by locating the ConsoleControl code that buffers console output in the WinForms/WPF control, then reproduce the issue with the described toy app that writes continuously. Done means a configurable buffer limit keeps memory bounded while the control continues displaying recent output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100