Signal 11, segmentation error on iphone Application exit

I have an iphone application. Everything seems to be in order. When I connect to a prepared iphone for Xcode and launch the application, the console log in the Organizer window always complains about a segmentation error when exiting the application using the home key.

Has anyone else seen this, and do you have an idea of ​​what might be the problem? I use a stream to load web pages in the background, but I stop the stream on exit.

My application saves some persistent information. When I use the build and analysis function, I get several potential potential memory leaks, but in each case I select an object and store it in an array.

Any ideas, or is this normal?

+5
source share
4 answers

Try running the NSzombieEnabled app. This will tell you if you finish issuing any object. To enable zombies, follow these steps:

  • Choose "Project"> "Edit Active Executable" to open the executable file Info window.
  • Select Arguments.
  • Click the "Add" (+) button in "Variables that must be set in the environment."
  • Type NSZombieEnabled in the Name column and YES in the Value column.
  • Make sure the checkbox for the NSZombieEnabled entry is selected.
+7
source

, dealloc.

0

, - , . -release dealloc ( ), .

, .

If you use convenience methods, for example (for example [NSString stringWithFormat:@"..."]), and not methods alloc-init(for example [[NSString alloc] initWithFormat:@"..."]), then the resulting convenience object is auto-implemented and should not be manually released.

0
source

My problem was uididfaker and locationholic from cydia, and after uninstalling xcode on my iphone is just fine.

0
source

All Articles