Graceful Disconnect FlexAPI client

  • 1
  • Question
  • Updated 4 weeks ago
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?
Photo of Mark Erbaugh

Mark Erbaugh

  • 510 Posts
  • 43 Reply Likes

Posted 4 weeks ago

  • 1
Photo of Mark - WS7M

Mark - WS7M

  • 1335 Posts
  • 501 Reply Likes
Are you disconnecting your event handlers before disconnecting the radio?