Daniel -- you need to give more info.... C#'s exception messages are terrible and very non-specific as they simply indicate failure and not why. Use the C function fopen() to test your database file. If you get an error back In your simple program display a dialog box with the strerror(errno) function. Then you'll see (and you can tell us) the error message. I don't know C# well enough to know if there's a way to get back the REAL error on an open exception. Most all the examples you can even find on the internet are horrible just for a simple file open. As a prior language instructor I always graded my students on error handling. Especially things like "permission denied" "file not found" type errors when everybody sticks in their own "can not open file" which has little meaning. Michael D. Black Senior Scientist Northrop Grumman Mission Systems
________________________________ From: sqlite-users-boun...@sqlite.org on behalf of Daniel Sent: Fri 7/2/2010 3:26 AM To: General Discussion of SQLite Database Subject: EXTERNAL:Re: [sqlite] problem with auto boot Am 02.07.2010 00:40, schrieb Simon Slavin: > On 1 Jul 2010, at 11:56am, Daniel Jung wrote: > > >> My problem: I wrote a simple program in c-sharp. This program does >> refers to a sqlite database. The program is in my auto boot so it shall >> run by starting by pc. But every time the is an exception that the >> database could not be opened. I have no idea why. If I run the program >> manual it works. Do I have to start any process seperate to get access >> to the database? Do you have any idea what I can do? >> > I assume you're using Windows. Programs run during the startup process have > unusual permissions and abilities. Put a command in your application to open > the database file as a plain file (e.g. a text file, not using any SQLite > functions) with read/write permission. See if you get any error message from > that command. > > Yeah, sorry. I'm using Windows Vista. There was no change. Are SQLite databases locked on start up process? greetings Daniel _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users