• Register
0 votes
128 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

Please log in or register to answer this question.

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 7 views
7 views
Problem A blocking operation was interrupted by a call to wsacancelblockingcall
asked Feb 9 charles mathews 3.8k points
0 votes
1 answer 10 views
0 votes
1 answer 189 views
189 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, 2020 Raphael Pacheco 4.9k points
1 vote
2 answers 165 views
165 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, 2020 LizzyM 6.1k points
2 votes
1 answer 34 views
34 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, 2020 LizzyM 6.1k points
0 votes
1 answer 412 views
412 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 395 views
395 views
Problem : I want to remote debug my windows 7 64bit machine, which runs the remote debugging tools. I am compiling the code in my local computer and then I copy it to my remote machine and run it with a remote debugger. It used to work until few days back also I don't recall ... 0 skipped ========== May be the change is the main reason and a "BeginBuild has not yet been called" is just a symptom?
asked Jan 25, 2020 jwilliam 3.9k points
0 votes
1 answer 338 views
338 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
0 votes
1 answer 217 views
217 views
Problem : I am searching the working solution for following C# issue. only one usage of each socket address (protocol/network address/port) is normally permitted.
asked Nov 16, 2019 peterlaw 6.9k points