I'm using the indy TIdHTTP component to download files via an asp page. It works great, updating progress bars and time elapsed/remaining etc..
The only problem I have is that I cannot figure out how to stop an active download. As per most operations that involve waiting, there's a cancel button, but I can't make it work!
I've tried using disconnect, disconnectSocket and even freeing and recreating the object, but these all cause either an access violation or an annoying dialog that says the connection was closed gracefully, but then makes the app hang.
Can anyone advise me on this?
Thanks a lot,