# WinForms app stays in memory after connecting to Remoting SDK Server

**URL:** https://talk.remobjects.com/t/winforms-app-stays-in-memory-after-connecting-to-remoting-sdk-server/23542
**Category:** Remoting SDK
**Tags:** net
**Created:** [November 18, 2020, 11:45am UTC](https://talk.remobjects.com/t/winforms-app-stays-in-memory-after-connecting-to-remoting-sdk-server/23542 "2020-11-18T11:45:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Wouter\_Devos1](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/w/4bbf92/32.png) [@Wouter\_Devos1](https://talk.remobjects.com/u/Wouter_Devos1)
#### Post date: [November 18, 2020, 11:45am UTC](https://talk.remobjects.com/t/winforms-app-stays-in-memory-after-connecting-to-remoting-sdk-server/23542/1 "2020-11-18T11:45:29Z")

</div>

Hello,

I think something iss wrong after utilizing a remoting sdk server because our winforms app stays in memory after closing it, only when we connected to a Remoting SDK Code First server.

I’ve attached an example. Start the Service, then start the WinForms app and click the button. After closing the winforms app, it stays in memory. After closing the server down, the winforms app keeps throwing an SocketException. So it’s like it keeps trying to connect…  
[RemotingSDKTest.zip](https://talk.remobjects.com/uploads/short-url/fq1JWEWKuGwam7ldexWyF89yYss.zip) (76.4 KB)  
Thanks for helping me out.

---

<div class="post-metadata">

### Author: ![antonk](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/a5b964/32.png) [@antonk](https://talk.remobjects.com/u/antonk)
#### Post date: [November 18, 2020, 4:50pm UTC](https://talk.remobjects.com/t/winforms-app-stays-in-memory-after-connecting-to-remoting-sdk-server/23542/2 "2020-11-18T16:50:09Z")

</div>

Hello

This happens because WinForms app for some reason do not stop a timer used by the SuperHttp client channel.  
In general it is recommended to explicitly close client -\> server connections on application exit.

However anyway this is a bug. Please drop a mail to support with your account name and we’ll provide you a personal build once the fix is available (so you won’t have to wait until the next Beta release)

Sorry for the inconvenience

---

<div class="post-metadata">

### Author: ![Wouter\_Devos1](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/w/4bbf92/32.png) [@Wouter\_Devos1](https://talk.remobjects.com/u/Wouter_Devos1)
#### Post date: [November 19, 2020, 9:17am UTC](https://talk.remobjects.com/t/winforms-app-stays-in-memory-after-connecting-to-remoting-sdk-server/23542/3 "2020-11-19T09:17:43Z")

</div>

Hello @antonk,

No problem.  
Thank you for looking into it. I’ll send you the mail today.

Thanks.
