• Register
0 votes
72 views

Problem :

I am facing following c# socket issue
the i/o operation has been aborted because of either a thread exit or an application request
6.9k points

1 Answer

0 votes

Solution :

I had also encountered the same issue with RS232 communication. The reason behind this issue is your program executes faster than the slow serial communication.

The solution of the issue is as follows :

Stream s = this.GetStream();
IAsyncResult ar = s.BeginWrite(data, 0, data.Length, SendAsync, state);
if (!ar.IsCompleted)
    ar.AsyncWaitHandle.WaitOne();

Please Note: Most of the time ar.IsCompleted is true.

36.1k points

Related questions

1 vote
2 answers 44 views
44 views
Problem: I am able to login through webservices api to particular account on 'Oracle on demand'. When i tries to call 'accountQueryPage' method of the stub class (Stub class is generated with help Account.wsdl file), i got the following exception java.net.SocketException: Software caused connection abort: recv failed Can anyone give me some pointers.
asked Mar 27 LizzyM 6.1k points
2 votes
1 answer 24 views
24 views
Problem: I am able to login through webservices api to particular account on 'Oracle on demand'. When i tries to call 'accountQueryPage' method of the stub class (Stub class is generated with help Account.wsdl file), i got the following exception java.net.SocketException: Software caused connection abort: recv failed Can anyone give me some pointers.
asked Mar 24 LizzyM 6.1k points
0 votes
1 answer 213 views
213 views
Problem : I am getting bellow error while using Sockets java.net.socketexception: software caused connection abort: socket write error
asked Oct 19, 2019 peterlaw 6.9k points
0 votes
1 answer 24 views
24 views
Problem : Strange windows error is shown repeatedly unhandled exception has occurred in your application. if you click continue the application will
asked Nov 12, 2019 peterlaw 6.9k points
0 votes
1 answer 162 views
162 views
Problem : I am trying to compute a loss on the jacobian of the network but encountered following error one of the variables needed for gradient computation has been modified by an inplace operation
asked Nov 14, 2019 peterlaw 6.9k points