Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting Error LIke:malloc: *** error for object 0xa2b6f50: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
    primarykey
    data
    text
    <p>I am Using xcode 4.6 with ARC enabled.I want to add some images to the UItableview row from server. i am getting the error like :</p> <p>malloc: <strong>* error for object 0xa2b6f50: pointer being freed was not allocated *</strong> set a breakpoint in malloc_error_break to debug</p> <p>Here is my Code :</p> <p>NSURL *imageURL = [NSURL URLWithString:[templateURL stringByAppendingFormat:@"%@",[[templateArray objectAtIndex:i] objectForKey:@"options_picture"]]];</p> <pre><code> UIImageView *templateView=[[UIImageView alloc]initWithFrame:CGRectMake(x1, y1, wid, ht)]; NSLog(@"templeteArray %@",imageURL); AsyncronousUIImage *image=[[AsyncronousUIImage alloc]init]; [image loadImageFromURL:imageURL inImageView:templateView]; image.delegate=self; [templateScroll addSubview:templateView]; </code></pre> <p>The AsyncronousUIImage class is as below:</p> <pre><code> - (void)loadImageFromURL:(NSURL *)anUrl inImageView:(UIImageView*)imgView{ imageView = imgView; NSURLRequest *request = [NSURLRequest requestWithURL:anUrl cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:30.0]; connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];} - (void)connection:(NSURLConnection *)theConnection didReceiveData:(NSData *)incrementalData { if (data == nil) data = [[NSMutableData alloc] initWithCapacity:2048]; [data appendData:incrementalData]; } - (void)connectionDidFinishLoading:(NSURLConnection *)theConnection { [self initWithData:data]; data = nil; connection = nil; [self.delegate imageDidLoad:self]; } </code></pre> <p>Any Help Appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload