On 3/1/06, Ralf Junker <[EMAIL PROTECTED]> wrote:
>
> >But I do not think that DOS has the ability
> >to automatically delete a file when it is closed, so the
> >files remain on disk after SQLite has finished with them.
>
> Just a thought:
>
> Wouldn't it possible to have SQLite thoughtfully delete all files it creates 
> when closing the database instead of relying on the operating system?
>
> I am not sure, but there might be plenty of OSes besides DOS that do not 
> automatically delete temporary files.

That's what the Windows CE port does, and I think I remember it's also
done on the Mac port (don't have the code in front of me and never
developed for a Mac).

The only problem is that it can be a race condition between the
closing of the handle and the actual delete command (because you can't
delete an open file on win world).

In the case of Windows CE, that risk is negligible. It would be even
less for DOS (last time I checked DOS wasn't multi-task, if we exclude
TSR's).

On (desktop) windows, this will not be so true, because of things like
anti-virus that open a file for scaning as soon as they are closed,
making the next delete to fail (but only sometimes and never on the
developper machine ;-).

> Ralf

Best regards,
~Nuno Lucas

Reply via email to