Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7802365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:14:31+00:00 2026-06-02T01:14:31+00:00

My code creates several TidTCPClients and then adds references to them in a TThreadList.

  • 0

My code creates several TidTCPClients and then adds references to them in a TThreadList.

I was hoping to send commands to all of them by then using

for I := 0 to (NumClients - 1) do
begin
  ClientList[I].IOHandler.WriteLn('Whatever');
end;

(that’s obviously only a small part of the code).

However I’m getting two errors:
[DCC Error] Client.pas(261): E2149 Class does not have a default property
[DCC Error] Client.pas(262): E2233 Property ‘IOHandler’ inaccessible here

and after a brief read of This I’m none the wiser about how to do this, but definitely beginning to think that I’m on the wrong track entirely.

Can anyone point me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:14:33+00:00Added an answer on June 2, 2026 at 1:14 am

    See doc how to operate TThreadList. You also need to type cast the TidTCPClient objects in the list since it only contains untyped pointers.

    var
      list: TList;
    ...
    list := ClientList.LockList;
    try
      for I := 0 to list.Count - 1 do
      begin
        TidTCPClient(list[I]).IOHandler.WriteLn('Whatever');
      end;
    finally
      ClientList.UnlockList;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that creates a bunch of UITextViews and puts them into
I'm using a memory table . It has several ids and a counter. All
Interesting situation. I have a section of code that creates several ZipOutputStreams. As a
I have a class that creates several IDisposable objects, all of these objects are
Im creating several grids with data using this code: @foreach(var set in viewModelEnvironment.SystemEnvironmentVariabelSets) {
I have some code to create a basic dialog box with several options -
I'm looking to create a custom date picker with code examples from several sources.
Client side javascript code creates some elements (about 50-100) in a cycle: for (var
The following code creates a field with multiple checkboxes. How do I set the
The following code demonstrates my dilemma. The code creates a background thread which processes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.