English 中文(简体)
Program received signal EXC BAD ACCESS
原标题:
  • 时间:2009-12-02 17:28:27
  •  标签:
  • iphone
  • sdk

I m stuck with a problem in emulator. The emulator occasionally stops with

Program received signal: "EXC_BAD_ACCESS" .

as console output. No further info provided. Is there a chance to come closer to the problem?

问题回答

I see that NSZombie already has been proposed, but the link doesn t seem to work anymore, so here s instructions on how to use it.

To activate NSZombie do the following:

  1. Get info of the executable.
  2. Go to the arguments tab.
  3. In the "Variables to be set in the environment:" section add:

Name: NSZombieEnabled Value: YES

Then run your app as usual and when it crashes it should tell you which deallocated object received the release message.

This often is caused by sending a message to an object that is no longer in memory. There is no error message because there is nothing on the stack when the error occurs. You can set breakpoints and step through your application until you find where the crash occurs, or you can use nszombie.

http://howtomakeiphoneapps.com/2009/02/nszombie-and-xcode-oh-my/





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签