Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to solve error EXC_BAD_ACCESS in my application?

I am loading the custom cell on tableView and i return 50 rows in the tableView. number of some rows are display in the tableview but when scroll the tableview my customcell is not display and I have the error

"EXC_BAD_ACCESS"

and also display following message on the console

"void SendDelegateMessage(NSInvocation*): delegate (webViewDidLayout:) failed to return after waiting 10 seconds. main run loop mode: UITrackingRunLoopMode"

like image 721
ChandreshKanetiya Avatar asked Jan 13 '11 06:01

ChandreshKanetiya


3 Answers

I think you get this error due to your method of making custom cells. When you made the class file for the custom cell in the .m file you released the IBOutlets. Try removing that portion from your code than try.

I had the same problem in an app, and I solved that problem this way. Maybe this solution will work for you too.

like image 61
AJPatel Avatar answered Oct 13 '22 11:10

AJPatel


The best way to detect zombies is:

  1. in the Groups and Files section, expand the Executables section and right click on your app name and choose Get Info
  2. select the Arguments tab on the top and then add a new entry in the Variables to be set in the environment section. Name the new variable to NSZombieEnabled and set its value to YES.

After this you will have information in console on which released objects you make calls.

like image 25
Andriy Avatar answered Oct 13 '22 11:10

Andriy


This typically means that you have asked the program to look at a memory area that you don't have access to, which usually means you have run off the end of an array, or something.

If you are running in debug mode, the stack trace will probably give you more clues. Open up the debug console.

like image 30
Hack Saw Avatar answered Oct 13 '22 10:10

Hack Saw