Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tutiplain

macrumors member
Original poster
Feb 4, 2011
95
0
Hi everyone,

My project is exhibiting a particularly strange behavior. I have a UIViewController subclass which has been pushed into a UINavigationController with pushViewController:. In the UIViewController, there are some UITextFields and a UITableView whose delegate and data source is set to the UIViewController subclass (I manually implement UITableViewDataSource and UITableViewDelegate). The thing is, whenever I click inside one of the UITextFields to edit it, program execution stops, like if it hit a debugger breakpoint. Only, the "breakpoint" stops on this line on main.m

Code:
int retVal = UIApplicationMain(argc, argv, nil, nil);

Beside the line, the following text appears

Code:
Thread 1: Program recieved signal: 'EXC_BAD_ACCESS'

There are no events currently connected to the UITextFields, so their default behavior should be to show which ever keyboard I specified on IB.

No error messages are reported on the gdb pane. I am using XCode 4.
Can anyone help me troubleshoot this error?

Thanks in advance.
 

tutiplain

macrumors member
Original poster
Feb 4, 2011
95
0
HI,

I managed to solve it on my own. It seems there was a memory leak of some sort. I removed unnecessary [release] statements and problem solved!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.