iphone - application crash in device -
i have made 1 application. in application have load 1 tableview text , select row in tableview load tableview @ time of select row application crashed in device. working in simulator. in device crashed. sample code @ didselectedrowatindexpath
- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { nslog(@"%d",indexpath.row); int k,i=0 ; (k = 1; k<=indexpath.row; k=k++) { = k * [appdeleg.tabledata count]; } nsmutablearray *temparray = [[nsmutablearray alloc] init]; appdeleg.finaldeptpayment = temparray; [temparray release]; (int j=0; j<[appdeleg.tabledata count]; j++) { finalcalculationvalue *objfinalvalue = [[finalcalculationvalue alloc] init]; nsdecimalnumber *dec = [[nsdecimalnumber alloc] initwithdouble:[[appdeleg.arrrowpayments2 objectatindex:i+j] doublevalue]]; objfinalvalue.deptpayment = dec; nslog(@"%@",dec); [appdeleg.finaldeptpayment addobject:objfinalvalue]; } if (objdeptdetail == nil) { objdeptdetail = [[deptandpaymentdetail alloc] initwithnibname:@"deptandpaymentdetail" bundle:nil]; [self.navigationcontroller pushviewcontroller:objdeptdetail animated:yes]; [objdeptdetail release]; objdeptdetail = nil; } }
so, pls tell me do?
go targets tab, in executables group application, , double click on it. window comes titled "executable 'app name' info" , have 2 tables in it, top 1 labeled "arguments passed on launch:" bottom 1 labeled "variables set in environment:"
click add button bottom table give new variable name "nszombieenabled" , value "yes." close window , run app (either in simulator or device.)
my guess app exit exception in both environments , inform object being used after deleted.
for more information: http://cocoa-nut.de/?p=16
Comments
Post a Comment