• 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: accessing menu crashes app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing menu crashes app


  • Subject: Re: accessing menu crashes app
  • From: Nonnus™ <email@hidden>
  • Date: Sat, 1 Nov 2008 05:39:00 +0000


quinn:
i cannot thank you enough for your continuous support :)

i could not figure out how to use NSZombieEnabled

however following a suggestion i was able to track the crash issue

it was related to:
[self.netService scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
and
[self.netService removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];

that had to be changed to:
[self.netService scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:(NSString*)kCFRunLoopCommonModes];
and
[self.netService removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:(NSString*)kCFRunLoopCommonModes];

can you provide any further info on why it was crashing ?

abraços

nonnus


Message: 5
Date: Wed, 29 Oct 2008 11:30:42 +0000
From: Quinn <email@hidden>
Subject: Re: accessing menu crashes app
To: email@hidden
Message-ID: <p0624080dc52df987d8ca@[10.0.40.15]>
Content-Type: text/plain; charset="iso-8859-1" ; format="flowed"

At 5:29 +0000 29/10/08, Nonnus wrote:
i though i had tracked the issue being related to retain / release issues
more specifically to typical bonjour [_server
release]; when a connection is made by removing
those the crash goes away but it also seems to
disrupt bonjour network as it starts leaving
server instances being advertised and just
creates new ones

Have you run your application with
NSZombieEnabled?  If you suspect a retain/release
problem, this is the first step in debugging it.
TN2124 describes how to set this flag.

<http://developer.apple.com/technotes/tn2004/tn2124.html>

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


------------------------------

_______________________________________________
Macnetworkprog mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/macnetworkprog

End of Macnetworkprog Digest, Vol 5, Issue 185
**********************************************

 _______________________________________________
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

  • Prev by Date: Re: CFRead/WriteStreamClose hoops thread
  • Previous by thread: Re: accessing menu crashes app
  • Index(es):
    • Date
    • Thread