> Hi all,
>
> I have included SQLite3 db within a cocoa application, from a Leopard
> system and saving and retrieving some data from it.
>
> Problem is - although it is running fine on Leopard, it is crashing on
> Snow Leopard.
First guess— you're calling -openDB instead of -dbInit, so various things, including member variables, aren't being set up properly passing in a NULL path to the database.
Other than that, I'd suggest looking at the return value from sqlite3_open() for more information. It would be good practice to put that error and the string from (I think) sqlite3_error_string() into the exception that you're throwing, either as part of the reason or packed into the exception's userInfo dictionary.
-Jim
What would be very helpful is to know what sqlite3_open is returning -- if it's not SQLITE_OK, then what is it? That would give you an important clue as to what's going wrong.
-Brent
---------------------------------------------------------------
Duncan Campbell
http://objective-d.com
Twitter: dunk
---------------------------------------------------------------
Matter will be damaged in direct proportion to its value.
-Brent
-gus
P.S:
You've got:
databaseName = [[NSString alloc] initWithString:@"test10.sql"];
make sure you're releasing that in your dealloc, or at least do:
databaseName = @"test10.sql";
--
August 'Gus' Mueller
Flying Meat Inc.
http://flyingmeat.com/