Re: [sqlite] OffTopic: Locking on Windows XP

2006-06-01 Thread Mikey C
Don't know if this helps: http://support.microsoft.com/kb/Q296264 Looks like you need to turn optimistic locking off. Same is true with MS Access if the file is located on a share. http://support.microsoft.com/default.aspx?scid=KB;EN-US;q300216; -- View this message in context:

RE: [sqlite] OffTopic: Locking on Windows XP

2006-06-01 Thread Brandon, Nicholas (UK)
>// Try and lock the file for writing >ULARGE_INTEGER bytesToLock.QuadPart = 2147483648; // 2^31 if (LockFile(h, 0, 0, bytesToLock.LowPart, >bytesToLock.HighPart) == 0) { ... >} Sorry, finger trouble :) Should read: // Try and lock the file for writing ULARGE_INTEGER bytesToLock.QuadPart =

[sqlite] OffTopic: Locking on Windows XP

2006-06-01 Thread Brandon, Nicholas (UK)
Hi, This is more of a heads up than anything else. I'm developing an app that writes to files using the Windows API. I actually used some code from the SQLite file library hence this message. The code snippet is: // Try to open existing file h = CreateFileA(path, GENERIC_WRITE, 0, NULL,