dwmkerr / dwmkerr/consolecontrol

Infinite buffer size

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
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).

![image](https://user-images.githubusercontent.com/12646755/73961034-a2da8b00-48ea-11ea-9918-61c02d47b8c9.png)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.