|Subject:||Re: Catastrophic error when canceling a MultipartFormData Post!!!|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Tue, 26 Apr 2005|
"Diego Bañuelos" <dbanuel…@prodigy.net.mx> wrote in message
> when I close the connection when an upload is taking place,
> the program raises an exception:
> Project raised an Exception class EidNotConnected with message
> "not connected"
That is to be expected. The only way to abort a transfer is to close the
socket. Simply wrap both the sending and the aborting code with try..except
blocks to catch any such exceptions.
> and after that, no other TidHttp Component in the same or other
> threads works again with get or post methods.
I seriously doubt that.
> The application freezes, like if it was on a deadlock or something!
Then your own code is probably not thread-safe to begin with.
Catastrophic error when canceling a MultipartFormData Post!!! posted by Diego Bañuelos on Tue, 26 Apr 2005