Note that there are some explanatory texts on larger screens.

plurals
  1. POMy application crashed when I retrieve second time from sqlite database in my running iPhone application
    primarykey
    data
    text
    <pre><code>- (void) hydrateDetailViewData { strong text//If the detail view is hydrated then do not get it from the database. if(isDetailViewHydrated) return; if(detailStmt == nil) { const char *sql = "Select name,Rdate,image from Movie_data Where id = ?"; if(sqlite3_prepare_v2(database, sql, -1, &amp;detailStmt, NULL) != SQLITE_OK) NSAssert1(0, @"Error while creating detail view statement. '%s'", sqlite3_errmsg(database)); } sqlite3_bind_int(detailStmt, 1, informationId); if(SQLITE_DONE != sqlite3_step(detailStmt)) { NSString *str = [NSString stringWithUTF8String:(char *)sqlite3_column_text(detailStmt, 0)]; self.informationName = str; //Get the date in a temporary variable. NSDate *date1; date1 = [NSDate dateWithTimeIntervalSince1970:sqlite3_column_double(detailStmt, 1)]; //NSInteger dateInInteger = sqlite3_column_int(detailStmt, 2); //self.setDate= dateInInteger; //Assign the date. The date value will be copied, since the property is declared with "copy" attribute. self.date = date1; NSData *data =[[NSData alloc] initWithBytes:sqlite3_column_blob(detailStmt, 2) length:sqlite3_column_bytes(detailStmt, 2)]; if(data == nil) NSLog(@"No image found."); else self.img = [UIImage imageWithData:data]; //Release the temporary variable. Since we created it using alloc, we have own it. [date1 release]; } else NSAssert1(0, @"Error while getting the price of coffee. '%s'", sqlite3_errmsg(database)); //DetailViewController.dvObj= //Reset the detail statement. sqlite3_reset(detailStmt); //Set isDetailViewHydrated as YES, so we do not get it again from the database. isDetailViewHydrated = YES; } </code></pre> <p>Second time pointer does not go in if condition &amp; directly goes in the else part.</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.
 

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