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

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

  •  06-03-2022
  •  | 
  •  

문제

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

도움이 되었습니까?

해결책 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.

다른 팁

try to write in UI Thread

EASession _session

InvokeOnMainThread (() => { 
   _session.OutputStream.Write(byteArray);
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top