EXC_BAD_ACCESS Opening SQLite
Hi All, i am having trouble while executing this statment, it gives EXC_BAD_ACCESS
if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK)
{
}
database is created at path as i have checked by
success = [fileManager fileExistsAtPath:databasePath];
it gives YES.
and Some time it pass through this statment successfully and gives same error on below lin
if(sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK)
Can any one please tell me the reason ,
What i am Doing wrong?
Regards,
Aamir
|