Help: database locked!
Thu Sep 14 18:59:00 GMT 2000
Unfortunately, if the database is corrupted, then yes you'll have
to rebuild the database. Currently we don't have any utilities
to recover corrupt database files.
If you're feeling adventurous, then you could have a look in
<install-dir>/share/gui/misc.tcl and have a look at the
procedure sn_read_project. This is where we test if we can
even open the file and if we can, then test if the database
is currently open by another project.
(Of course if you want to get nasty you could just comment out
or removed the checks so it just opens it anyway......?)
Window 98/95 is probably our least tested platform, so please
share any interesting findings.
P.S.: Basic Tcl knowledge required.
> Tai Wu Chiang wrote:
> Yes, I did. If it is corrupted, does it mean I have to re-create the
> project :(
> -----Original Message-----
> From: Ian Roxborough [ mailto:firstname.lastname@example.org ]
> Sent: Thursday, September 14, 2000 7:02 PM
> To: Tai Wu Chiang; 'email@example.com'
> Subject: Re: Help: database locked!
> Have you rebooted since the SN crash?
> SN locks the database (on Windows) by opening
> the database file, other instances of SN check
> to see if the database file is already open and back
> off if it's open. So, it would be likely that either
> the crash SN process is a zombie holding on to
> the file handle, or the OS hasn't freed up the file
> handle after that crash.
> If you have rebooted then the database might
> be corrupted ;-(
> Can you reproduce the crash?
> (On other systems and well?)
> On Fri, 15 Sep 2000, Tai Wu Chiang wrote:
> > Date: Fri, 15 Sep 2000 00:44:43 +0100
> > To: "'firstname.lastname@example.org'" <email@example.com>
> > From: Tai Wu Chiang <firstname.lastname@example.org>
> > Subject: Help: database locked!
> > Hello:
> > For some reason my SN crashed and after then it can not Reparse
> > Project.
> > It always shows a message "The database is locked!" and returns
> > updating. Can anyone help tell me how to unlock it? Thanks.
> > I am using SN 4.5.1 for Windows on 98 second edition.
> > Tai-Wu Chiang
More information about the Sourcenav