BrandonPotter / SimpleTCP

Straightforward .NET library to handle the repetitive tasks of spinning up and working with TCP sockets (client and server).
Apache License 2.0
363 stars 108 forks source link

error can't connect to com ip System.OutOfMemoryException #76

Open isrightkev opened 1 year ago

isrightkev commented 1 year ago

hi i'm disconnecting and reconnecting to using

Com2 = new SimpleTcpClient();

Com2 .Disconnect();

but i'm getting this error message error

is there a better way to close the connection?