Null object exception when closing SuperHttpServer RO server

We get an {“Object reference not set to an instance of an object.”} exception in the
RemObjects.SDK.Server.ApplicationServer.Run call when closing our RO server process.

What causes this? How can this be avoided?

at RemObjects.SDK.SslConnection.IntBeginWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
at RemObjects.SDK.Connection.BeginWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
at RemObjects.SDK.Server.AsyncHttpServerWorker.SendResponse()
at RemObjects.SDK.Server.AsyncHttpContext.SendResponse()
at RemObjects.SDK.Server.IpSuperHttpServerChannel.SendResponse(IServerChannelInfo channel, Byte[] responseData, HttpHeaders responseHeaders, SuperHttpServerResponse userData)
at RemObjects.SDK.Server.SuperHttpServerChannel.CloseConnection(SuperHttpServerConnection connection)
at RemObjects.SDK.Server.SuperHttpServerChannel.CloseAllConnections()
at RemObjects.SDK.Server.SuperHttpServerChannel.CloseChannel()
at RemObjects.SDK.Server.ServerChannel.set_Active(Boolean value)
at RemObjects.SDK.Server.ServerChannel.Close()
at RemObjects.SDK.Server.NetworkServer.InternalStop()
at RemObjects.SDK.Server.NetworkServer.Stop()
at RemObjects.SDK.Server.ServerMainForm.StopServer()
at RemObjects.SDK.Forms.ServerBaseForm.DoStopServer()
at RemObjects.SDK.Forms.ServerBaseForm.Dispose(Boolean disposing)
at RemObjects.SDK.Server.ServerMainForm.Dispose(Boolean disposing)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Our server is created

    //Start super HTTP RO server 
    serverROSuperHTTP_ = new RemObjects.SDK.Server.ApplicationServer("ServiceBroker");
    // Enable traffic encryption
    serverROSuperHTTP_.AutoCreateSelfSignedCertificate = false;
    serverROSuperHTTP_.NetworkServer.UseTLS = true;
    serverROSuperHTTP_.NetworkServer.Certificate = new System.Security.Cryptography.X509Certificates.X509Certificate2(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "wildcard_officinall_be.pfx"), "0fficinall");
    serverROSuperHTTP_.NetworkServer.ServerChannel = new RemObjects.SDK.Server.IpSuperHttpServerChannel();
    serverROSuperHTTP_.NetworkServer.Port = 7475;
    if (bInteractive_)
      serverROSuperHTTP_.Run(args);

SDK version 10.0.0.1489

This is an issue with stalled client connection + TLS encryption. Presumable connection was broken and some packages were not delivered. Server tries to send stalled data one more on shutdown, and founds an already released encryption stream.
I will log an issue for deeper investigation of the issue. The fix will be available on the next Beta build. Alternatively you can drop a mail on support@ with your account name and we will provide you the fixed build once it is available.

Sorry for the incovenience

Logged as bugs://D19098.

bugs://D19098 was closed as fixed.

Do we get notified if a certain bug is in a release?

Hello

The fix should be present in the latest available build. Could you retest if the issue has been resolved?

Thanks in advance

Do you mean the preview build (Data Abstract for .NET, Server Edition - 10.0.0.1511)?
Is this then also the case for [bugs://D19096 ]?

Hello

Yes, the 1511 build. It contains the fix for 19096: Login | Portal | RemObjects Software