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? -- D. Richard Hipp <[EMAIL PROTECTED]>