• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there a transactional data limit with NSStreams?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a transactional data limit with NSStreams?


  • Subject: Re: Is there a transactional data limit with NSStreams?
  • From: Carl Hoefs <email@hidden>
  • Date: Tue, 08 Jul 2014 17:11:17 -0700

On Jul 8, 2014, at 4:29 PM, Carl Hoefs <email@hidden> wrote:

Could ARC be releasing the stream before its time? 

That was it!  ARC was releasing the streams. But it was my fault!

I had this:

    self.inputVideoNSStream = (__bridge NSInputStream *)self.readVideoCFStream;
    self.outputVideoNSStream = (__bridge NSOutputStream *)self.writeVideoCFStream;

when I should have had this:

    self.inputVideoNSStream = (__bridge_transfer NSInputStream *)self.readVideoCFStream;
    self.outputVideoNSStream = (__bridge_transfer NSOutputStream *)self.writeVideoCFStream;

I wasn't transferring the retain spec of the streams, so ARC axed them. D'oh!
Thx,
-Carl

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re(2): Is there a transactional data limit with NSStreams?
      • From: Peter Lovell <email@hidden>
References: 
 >Is there a transactional data limit with NSStreams? (From: Carl Hoefs <email@hidden>)
 >Re: Is there a transactional data limit with NSStreams? (From: Jens Alfke <email@hidden>)
 >Re: Is there a transactional data limit with NSStreams? (From: Carl Hoefs <email@hidden>)

  • Prev by Date: Re: Is there a transactional data limit with NSStreams?
  • Next by Date: Re(2): Is there a transactional data limit with NSStreams?
  • Previous by thread: Re: Is there a transactional data limit with NSStreams?
  • Next by thread: Re(2): Is there a transactional data limit with NSStreams?
  • Index(es):
    • Date
    • Thread