Skip to main content

Hi

When i want to close a connection with a SmartObjectClientServer, i execute this code :

if (_server != null && _server.Connection != null)
            {
                if (_server.Connection.IsConnected)
                {
                    _server.Connection.Close();
                }
                _server.DeleteConnection();

            }

 

I've a problem with this code. I think an operation is asynchronous because i've some aborted thread exception.

 

just for fun try removing the _server.DeleteConnection.

Reply