Hi !

  I need to use TPing component for checking large lists of servers. So I've 
decided to use threads (i haven't find asynchronous functions like it was 
with TFTPCli), so this only way i know. I'll show some code so it will be 
easier to explain my problem. Here is thread Execute function (almost all):
  // [CPing initialization]
    CPing = new TPing(NULL);
    CPing->Timeout = StrToInt(fPinger->edTimeout->Text) * 1000;
    CPing->Size = StrToInt(fPinger->edPacketSize->Text);
    CPing->Flags = 0;
    CPing->TTL = 64;
    CPing->OnDisplay = CPingDisplay;
    CPing->OnDnsLookupDone = CPingDnsLookupDone;
    CPing->OnEchoReply = CPingEchoReply;
    CPing->OnEchoRequest = CPingEchoRequest;
    // [/CPing initialization]

    // ...here i is loading of server list...

  Now its turn of CPingDnsLookupDone event:
   fPinger->Memo1->Lines->Add("Error= " + StrToInt(Error));  // to memo box 
added nothing, totally. i Even tried to do it with synchronize it not helps 

  if(Error != 0)
      // unknown host
  CPing->Address = CPing->DnsResult;
DnsResult is always (just empty when im trying to print it).

  I don't know what to do with that. But i need your help to solve this 

With Respect,

Express yourself instantly with MSN Messenger! Download today it's FREE! 

To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to