- (NSMutableArray*)findContactInfoWithuseid:(NSString*)userid
{
NSMutableArray *list = [[[NSMutableArray alloc]init]autorelease];
//ResultSet *rs = [[DBHelper sharedInstance].database executeQuery:@"SELECT * FROM PliceContact where userId = ?",userid];
ResultSet *rs = [[DBHelper sharedInstance].database executeQuery:@"SELECT * FROM PliceContact where userId"];
while([rs next]) {
ContactInfo *info = [[ContactInfo alloc] init];
info._userId = [rs stringForColumnIndex: 0];
info._department = [rs stringForColumnIndex: 1];
info._userName = [rs stringForColumnIndex: 2];
info._recordId = [rs stringForColumnIndex: 3];
[list addObject:info];
[info release];
}
return list;
}- (void)getPoliceListData{
NSLog(@"get the list");
NSMutableArray *resultArray = [[NSMutableArray alloc] init];
resultArray = [[TableMaintenance sharedInstance] findContactInfoWithuseid:@"1"];
NSLog(@"resultArray = %@",resultArray);

[resultArray release];//这边释放就会崩溃了,何解?
}