Results 1 to 3 of 3

Thread: :\

  1. #1
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default :\

    Sorry to ask this but.

    Im creating a IRC client that will connect to multiple servers.
    It already connects and sends data to each of them, but Im having troubles retrieving data from them.

    Every time I try to retrieve the data, it locks SCAR up.

    Is it because Im using a TTimer or what?

    Heres the code.


    SCAR Code:
    procedure dataCollect(sender : TObject);
    var
      iCount : Integer;
      Data : Array[1..4] of string;
      dA : Boolean;

    begin

    for iCount := 1 To Length(mArray) do
      begin
        dA := ReadConnectionData(mArray[iCount].Con, Data[iCount]);
        if(Data[iCount] <> '') then
          begin
            Writeln(Data[iCount]);
          end;
      end;

      exit;

    end;

    Thanks. :]

    Edit: Fixed the slopiness. :]]

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    i think maybe a funtion would work
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    I have a form, and I need it to retrieve data from 1 to 4 servers while its open, but it keeps locking up.

    I don't think a function will work, but I'll try it. Thanks.

    Edit: Didn't work. ;\\

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •