D. Richard Hipp wrote:

Please run your program in a debugger and tell
me what the subroutine "isNT()" returns in os_win.c.
If it is returning false, that would explain your
occasional inability to get a read lock on a
read-only database.
Perhaps a windows programmer can suggest a better
implementation of the isNT() function?

Haven't looked at your source, but the following has never failed:

bool IsNT()
{
   DWORD ver = GetVersion();
   if (ver & 0x80000000)
       return false;
   else
       return true;
};

bool Is95()
{
   return ! IsNT();
};

This is used in our app on 1000's of PC's, if it failed the PC's would crash - badly. Believe me I would know ...

--
Lindsay


Reply via email to