• 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: After Autoreleasing Still Getting Leaked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: After Autoreleasing Still Getting Leaked


  • Subject: Re: After Autoreleasing Still Getting Leaked
  • From: Bing Li <email@hidden>
  • Date: Thu, 16 Jun 2011 03:24:38 +0800

The string can be any length. I put the received strings into a queue and
another thread gets the strings out of the queue and parse there. Actually,
the string is XML. During the test, the string length is always 259.

I also wonder why it works fine according to Activity Monitor if such a huge
leak exists. The consumed memory in the Activity Monitor is stable and much
smaller unless some threads are created.

Thanks,
Bing

On Thu, Jun 16, 2011 at 3:07 AM, Scott Ribe <email@hidden>wrote:

> On Jun 15, 2011, at 1:04 PM, Bing Li wrote:
>
> > I test the program just on a single Mac machine using TCP, i.e., both the
> client and the server are located on the same machine. So I think it is
> impossible that the data is corrupted during the transmission.
>
> Yes, but it is possible to get a buffer that contains a break in the middle
> of a multi-byte sequence, and is therefore invalid UTF-8, unless your
> strings are never > 1024 bytes in length.
>
> --
> Scott Ribe
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: After Autoreleasing Still Getting Leaked
      • From: Jens Alfke <email@hidden>
References: 
 >After Autoreleasing Still Getting Leaked (From: Bing Li <email@hidden>)
 >Re: After Autoreleasing Still Getting Leaked (From: Scott Ribe <email@hidden>)
 >Re: After Autoreleasing Still Getting Leaked (From: Bing Li <email@hidden>)
 >Re: After Autoreleasing Still Getting Leaked (From: Scott Ribe <email@hidden>)
 >Re: After Autoreleasing Still Getting Leaked (From: Jens Alfke <email@hidden>)
 >Re: After Autoreleasing Still Getting Leaked (From: Scott Ribe <email@hidden>)
 >Re: After Autoreleasing Still Getting Leaked (From: Bing Li <email@hidden>)

  • Prev by Date: Re: Interface item validation through first responder
  • Next by Date: Re: After Autoreleasing Still Getting Leaked
  • Previous by thread: Re: After Autoreleasing Still Getting Leaked
  • Next by thread: Re: After Autoreleasing Still Getting Leaked
  • Index(es):
    • Date
    • Thread