Solved

Delphi 7 & TidCmdTCPServer - Hangs on simultaneous calls to OnCommand.

Posted on 2007-04-10
3
453 Views
Last Modified: 2008-03-18
Hi All,

I am using Delphi 7 with Indy components, TidCmdTCPServer.
My application runs on a LAN and need to communicate with each other in this manner using Indy's TidCmdTCPServer component.
I have created several commands in the mentioned component.

But when I have 2 application sending the same command to my server application simultaneously all application (clients & server) hangs.

Does the OnCommand events of the TidCmdTCPServer automatically handles simultaneous calls to the same event?

Can some please assit me?

Thanks!
0
Comment
Question by:Marius0188
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 500 total points
ID: 18914885
your code is likely not threadsafe. This is related to your other question.
I have an example of how to PostMessagess from within an indy thread (I prefer this to the IdSync method due to its' portability and compatiibility to Indy 9 and Indy 10)
http://sourceforge.net/projects/internetdemos
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21156546
Forced accept.

Computer101
EE Admin
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Printing problem 2 124
Press three keys together and trigger a function 3 75
DBCtrlGrid, Delphi, Scroll 7 35
delphi popmenu non latine charcters 3 49
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question