-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Steps to reproduce;
- start vatSys and log in with other ATC around
- start vStrips and connect
- close vStrips
- in vatSys in the vStrips INTAS settings, click Restart
- start vStrips again
the plugin errors per below.
Note if NO ATC are online there is no error, the plugin connects to vStrips and data flows fine.
System.ObjectDisposedException
HResult=0x80131622
Message=Cannot access a disposed object.
Object name: 'System.Net.Sockets.UdpClient'.
Source=System
StackTrace:
at System.Net.Sockets.UdpClient.BeginSend(Byte[] datagram, Int32 bytes, IPEndPoint endPoint, AsyncCallback requestCallback, Object state)
at System.Net.Sockets.UdpClient.BeginSend(Byte[] datagram, Int32 bytes, AsyncCallback requestCallback, Object state)
at System.Threading.Tasks.TaskFactory1.FromAsyncImpl[TArg1,TArg2](Func5 beginMethod, Func2 endFunction, Action1 endAction, TArg1 arg1, TArg2 arg2, Object state, TaskCreationOptions creationOptions)
at System.Net.Sockets.UdpClient.SendAsync(Byte[] datagram, Int32 bytes)
at vStripsPlugin.vStripsConnector.SendPacket(String packet) in C:\Users\jgoli\source\repos\vStripsPlugin\vStripsConnector.cs:line 379
at vStripsPlugin.vStripsConnector.SendATCOnline(NetworkATC atc) in C:\Users\jgoli\source\repos\vStripsPlugin\vStripsConnector.cs:line 249
at vStripsPlugin.vStripsConnector.Network_OnlineATCChanged(Object sender, ATCUpdateEventArgs e) in C:\Users\jgoli\source\repos\vStripsPlugin\vStripsConnector.cs:line 68
at System.EventHandler1.Invoke(Object sender, TEventArgs e) at vatsys.Network.AddOnlineATC(NetworkATC atc) at vatsys.Network.VATSIM_ATCPositionReceived(Object sender, DataReceivedEventArgs1 e)
at Metacraft.Vatsim.Network.FSDSession.RaiseATCPositionReceived(PDUATCPosition pdu)
at Metacraft.Vatsim.Network.FSDSession.ProcessData(String data)
at Metacraft.Vatsim.Network.FSDSession.OnDataReceived(IAsyncResult asyn)
This exception was originally thrown at this call stack:
[External Code]
vStripsPlugin.vStripsConnector.SendPacket(string) in vStripsConnector.cs
vStripsPlugin.vStripsConnector.SendATCOnline(vatsys.NetworkATC) in vStripsConnector.cs
vStripsPlugin.vStripsConnector.Network_OnlineATCChanged(object, vatsys.Network.ATCUpdateEventArgs) in vStripsConnector.cs
[External Code]