Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frequent create NamedPipeClient instance to Connect Server can cause memory leak #31

Open
fjwgrace opened this issue Jun 2, 2021 · 1 comment

Comments

@fjwgrace
Copy link

fjwgrace commented Jun 2, 2021

Frequent create NamedPipeClient instance to Connect Server can cause memory leak
Task.Factory.StartNew(() => { while (true) { i++; NamedPipeClient<string> _client2 = new NamedPipeClient<string>(Constants.PIPE_NAME); _client2.ServerMessage += OnServerMessage; _client2.Disconnected += OnDisconnected; _client2.Start(); _client2.PushMessage("this is the " + i + "client"); _client2.Stop(); _client2.ServerMessage -= OnServerMessage; _client2.Disconnected -= OnDisconnected; Thread.Sleep(200); } });

@idan-h
Copy link

idan-h commented Aug 6, 2021

Is the memory leak on the server or the client side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants