Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Nov : Performing an FTP delete when windows shuts down
| Subject: | Performing an FTP delete when windows shuts down |
| Posted by: | "Dominic Willems" (nospam@spam.spa) |
| Date: | Wed, 29 Nov 2006 04:56:41 |
Have an application that needs to delete a file on an FTP server when it
shuts down, either by user's choice or on Windows shutdown.
Works flawlessly when the command is given by the user, but during
Windows shutdown (command issued from OnCloseQuery -- and even tried the
WMEndSession message) I get socket errors trying to connect to the FTP
server.
Are all sockets closed by Windows before the applications are notified
of the shutdown? Is there any way to achieve a last FTP connect before
shutdown?
Many thanks.