EAOutputStream write:maxLength: - 230 failed to write because stream does not have space available

StackOverflow https://stackoverflow.com/questions/14723156

  •  06-03-2022
  •  | 
  •  

Question

I was using this. It was working well till I upgraded my iphone to IOS 6.1.

[[session_ipos outputStream] write:ui8Buff maxLength:tot];

Now its giving an error message:

ERROR - /SourceCache/ExternalAccessory/ExternalAccessory-213/EAOutputStream.m:-[EAOutputStream write:maxLength:] - 230 failed to write because stream does not have space available

Was it helpful?

Solution 2

I was able to solve this issue with the help of Demo from

http://developer.apple.com/library/ios/#samplecode/EADemo/Introduction/Intro.html

I changed the way i was trying to access External Accessories and related functions.

OTHER TIPS

try to write in UI Thread

EASession _session

InvokeOnMainThread (() => { 
   _session.OutputStream.Write(byteArray);
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top