On line 158 of AsyncResult in edtFTPnetPRO does not check if the log is null before trying to write to it.
It caused the following uncatchable exception to be to be thrown which caused the teardown of my application.
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
at Org.Mentalis.Security.Ssl.AsyncResult.set_AsyncException(Exception value)
at Org.Mentalis.Security.Ssl.SecureSocket.OnConnect(IAsyncResult ar)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.ContextAwareResult.CompleteCallback(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Sockets.Socket.ConnectCallback()
at System.Net.Sockets.Socket.RegisteredWaitCallback(Object state, Boolean timedOut)
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)
Let me know if you need any further information.