Re: [DUG] Delete (File) Function ?

2008-06-29 Thread John Bird
I have come across similar problems on Windows Servers over the years in a couple of cases: 1 - Data Files (non-database in this case) that have been updated and finished with and closed may remain open or in use as far as the Server goes. Sometimes this times out after a few minutes and the

Re: [DUG] Delete (File) Function ?

2008-06-29 Thread Conor Boyd
Not really going to get into the specifics of what's happening in your particular instances, but another suggestion might be to make use of the RunOnce key in the Registry to delete files the next time Windows starts up. See http://delphi.about.com/cs/adptips1999/a/bltip0799_3.htm for some

Re: [DUG] Delete (File) Function ?

2008-06-29 Thread Myles Penlington
Beware of how you copy/duplicate handles, if you do, as every copy/duplicate of the file handle must be closed. And some windows functions return you file handles or duplicates which you must then close - has caught us out more than once. Of course once the program exits, the windows OS is

Re: [DUG] Delete (File) Function ?

2008-06-29 Thread Stephen Barker
Hi, I've noticed the same on some web servers, where we typically have product images stored externally from the product database. After deleting the product record, sometimes the image file deletion fails. In this case we trap that and queue it for later deletion in a nightly process.

[DUG] Have I got the wrong end of the stick here?

2008-06-29 Thread jeremy
Hi All.Not entirly a Delphi question, but I am using Delphi .Net ;-)I have a sneaky suspission I have the wrong end of the stick here, and maybe someone can tell me either way.I was writting a WebService in Delphi .Net and THOUGHT if I had a function called "test" that I could call is liekt his