Re: Catastrophic error when canceling a MultipartFormData Post!!!

Giganews Newsgroups
Subject: Re: Catastrophic error when canceling a MultipartFormData Post!!!
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Tue, 26 Apr 2005

"Diego Bañuelos" <dbanuel…@prodigy.net.mx> wrote in message
news:675BA5BC81C8E240dbanuel…@prodigy.net.mx...

> 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.

Gambit

Replies

None

In response to

Catastrophic error when canceling a MultipartFormData Post!!! posted by Diego Bañuelos on Tue, 26 Apr 2005