Subject | Re: I/O error when connect to embedded db for the 1st time |
---|---|
Author | Sean |
Post date | 2007-01-10T19:17:14Z |
--- In firebird-support@yahoogroups.com, "Sean" <firebird_tmc@...> wrote:
1. The error message is: operating system directive CreateFile failed
2. The application using the database is a service. Everytime when the
computer is rebooted, the service can't start because of this error.
But after login and start the service manually, it works fine.
>error".
> --- In firebird-support@yahoogroups.com, Helen Borrie <helebor@> wrote:
> >
> > At 03:08 AM 10/01/2007, you wrote:
> > >Hi, I meet this problem occasionally while I have no clue why this is
> > >happening and it bothers me:
> > >
> > >Copy a new firebird DB and start the application to connect to the DB
> > >in embedded embedded mode, sometimes it gives an error of "i/o
> > >If I run the application again, it works fine since then. Seemsdatabase it
> > >something was rectified after 1st failure.
> > >
> > >Not sure if it is caused by the way I created the database. Here are
> > >the steps:
> > >1. generate SQL from my development DB.
> > >2. Run SQL to generate an empty database
> > >3. Open the empty database in IBExpert in superserver mode, run
> > >another sql to create some pre-defined records, the close the DB
> > >connection.
> > >
> > >Unfortunately I cannot duplicate the problem. For one same
> > >may have problem on one computer, but works fine on another one...Here are more info that I got just now. Hope this can be useful:
> > >
> > >Does anyone have a clue?
> >
> > It's probably due to not explicitly committing the script's work in
> > IBExpert. Check how you have it configured with regard to committing
> > transactions.
> >
> > ./heLen
> >
>
> After running the script, Script Executive asks "There are uncommited
> statements. Commit them?". I always answer yes. Then I disconnect
> from the database and copy the database file out.
>
> I notice that after I disconnect from database, the fbserver.exe still
> hold a handle to the database file. If I copy the db file with the
> handle open, is that a problem?
>
> -Sean
>
1. The error message is: operating system directive CreateFile failed
2. The application using the database is a service. Everytime when the
computer is rebooted, the service can't start because of this error.
But after login and start the service manually, it works fine.