Indy 9 Frozen Application

I am using Madshi's MadExcept to troubleshoot an application of mine. I have been having trouble with an error stating that the application is frozen. This is happening when I am calling writebuffer on an Indy 9.0 TIDTCPServer

Here is what I am doing:

with FServer.Threads.LockList do
      try
      For x:=0 to FConnectionCount -1 do
        if TConnectionThreadData(TIdPeerThread(Items[x]).Data).SendToThisThread then
          TIdPeerThread(Items[x]).Connection.WriteBuffer(FSendBufferStream.Memory^,FSendBufferStream.Size,True);
      Finally
       FServer.Threads.UnLockList;
      end;



exception message : The application seems to be frozen.

main thread ($3b8):
77f82870 ntdll.dll                                    NtWaitForSingleObject
75031c5f WS2_32.DLL                                   send
00481952 ScreenCapAgent.exe IdStackWindows        316 TIdStackWindows.WSSend
00484e52 ScreenCapAgent.exe IdSocketHandle        153 TIdSocketHandle.Send
00489b21 ScreenCapAgent.exe IdIOHandlerSocket     233 TIdIOHandlerSocket.Send
004885d5 ScreenCapAgent.exe IdTCPConnection       786 TIdTCPConnection.WriteBuffer


I am at a loss on this one. HELP!!
LVL 6
rbohacAsked:
Who is Participating?
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.

RatjeCommented:
Not sure if this will help in any way ...

I had the (Indy)chat-demo program freezing up. Dropping a TIdAntiFreeze on the form got rid of that problem, maybe it'll help in your case too.
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
BdLmCommented:
i faced a problem with madexept and Indy:
madexept is reporting frozen application if no data is received within the monitoring time.  Just disable madexept "check for frozen apps" and the time limit is gone.
does it help?
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.