Hello, Thanks for the swift response.
Hmm I don't know to be honest, something generic perhaps like a failure to write... It's just a little bit misleading if you're not familiar with the circumstances it's raised in... I've had some confused colleagues wondering why their 100kb DB on a disk with 15gb free would be out of space :) It's nothing urgent for me, I will alter the error message I return to offer more suggestions as to the cause, but given in Windows we can use GetLastError() and format an error message, this information would no doubt be of use to people in diagnosing why the file write failed. Many thanks, and keep up the great work! Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 10 February 2006 17:01 To: sqlite-users@sqlite.org Subject: Re: [sqlite] Database Disk Full "Drew, Stephen" <[EMAIL PROTECTED]> wrote: > Hello, > > In sqlite3OsWrite function (in os_win.c) the following code exists: > > while( amt>0 && (rc = WriteFile(id->h, pBuf, amt, &wrote, 0))!=0 && > wrote>0 ){ > > amt -= wrote; > > pBuf = &((char*)pBuf)[wrote]; > > } > > if( !rc || amt>(int)wrote ){ > > return SQLITE_FULL; > > } > > Is this really a valid occasion to return SQLITE_FULL? What error code would you suggest as an alternative? -- D. Richard Hipp <[EMAIL PROTECTED]>