Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
If you are having a problem, please refer to the product documentation or check the Help Center for known solutions.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.

Graceful Disconnect FlexAPI client

Mark Erbaugh
Mark Erbaugh Member ✭✭
edited February 2020 in SmartSDR API
I've written a non-GUI FlexAPI client. Every time my client disconnects from the radio, a System.ObjectDisposedException is thrown. I'm assuming it is because an incoming data packet has no client object to receive it as the client object (presumably a Radio) has been disposed. Is there a safe time to dispose of the Radio object when disconnecting?

Answers

  • Mark_WS7M
    Mark_WS7M Member ✭✭✭
    edited February 2020
    Are you disconnecting your event handlers before disconnecting the radio?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.