Infinite loop in Indy Exception Handling

Using Delphi, I have a client / server application which requires an Indy (from 2016) based connection. The problem scenario is very specific. During a data transfer from the Server, the Server disconnects. Indy recognizes this and Raises an Exception (usually 10054) but can fall in to an infinite loop, where it just continues to raise the same Exception over and over again. This exception is only seen in Debug mode, so just appears as an infinite loop to a client. I have a Try / Except block surrounding the test operation in an attempt to catch the Exception but it never exits.
SOTHDEVAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sinisa VukSoftware architectCommented:
Please post your code here. I assume you doing something wrong. Indy will not loop infinitive - I sure.
0
SOTHDEVAuthor Commented:
I have tracked this further and may be a problem with the TkbmMWTCPIPIndyClientTransport middle layer I am using. I have an OnException Event tied to my Client Object,
but in kbmMWClient

function TkbmMWCustomClient.InternalSendRequest(AServiceName,AServiceVersion:string; AStateID:integer; AFunc:string; {$IFDEF KBMMW_LICENSE_MESSAGING}AAsync:boolean; var ARequestID:integer;{$ENDIF} const Args:array of Variant):Variant;
.
.
.
                                   on E: Exception do
                                   begin
                                        if Assigned(FTransport.FOnClientException) then
                                        begin

It does not find it assigned. I will have to track it down, as every other event on FTransport seems to be assigned properly.
0
SOTHDEVAuthor Commented:
There was a bug in my version of kbMW when creating pooled clients it did not copy the FonClientException.
Seems to be resolved now.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SOTHDEVAuthor Commented:
Once I corrected the 3rd Party code it resolved the issue
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.