Skip to content

UnhandledException: System.ObjectDisposedException #1588

Description

@SoftStoneDevelop
UnhandledException: "System.ObjectDisposedException: Safe handle has been closed.
Object name: 'SafeHandle'.
at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
at Interop.Crypto.EvpCipherUpdate(SafeEvpCipherCtxHandle ctx, Byte& output, Int32& outl, Byte& input, Int32 inl)
at System.Security.Cryptography.OpenSslCipherLite.Transform(ReadOnlySpan`1 input, Span`1 output)
at System.Security.Cryptography.UniversalCryptoTransform.TransformBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[] outputBuffer, Int32 outputOffset)
at Renci.SshNet.Security.Cryptography.Ciphers.AesCipher.CtrImpl.CTREncryptDecrypt(Byte[] data, Int32 offset, Int32 length)
at Renci.SshNet.Session.SendMessage(Message message)
at Renci.SshNet.Session.TrySendMessage(Message message)
at Renci.SshNet.BaseClient.SendKeepAliveMessage()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
End of stack trace from previous location
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions