• Register
0 votes
89 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 5 3
6,930 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.

9 7 4
38,600 points

Related questions

0 votes
1 answer 24 views
24 views
Problem: I am very new to .Net programming. Recently I was trying to run the .Net socket server code on my Win7-64bit machine. But I am receiving the below error: System.Net.Sockets.SocketException: An address incompatible with the requested protocol was used. Error Code: 10047 ... -XP sp3 . I have already checked the error code details on MSDN but it does not make any sense to a beginner like me.
asked Aug 22 Raphael Pacheco 4.9k points
1 vote
2 answers 77 views
77 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