Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indy 10 IRC Client Component

Status
Not open for further replies.

MaggotMouth

Programmer
Aug 13, 2006
9
ZA
Hi.

I've been screwing around with indy components a while, but could never get them to work out fantasticly. I recently got Indy 10 and now I'm TOTALLY lost.

The IRC Client component has me totally totally totally confused. I fill in all the fields as necessary, nick, altnick, host, port, etc (running on localhost irc server)

When I do
Code:
  ircClientThingy.Connect
it fizzles and dies with a lovely EAccessViolation error.
"Access violation at address xxxxxx"
and it returns me to the line in the IdReply unit that says
Code:
FReplyTexts.UpdateText(Self);

Please, can anyone shed some light on my ubern00bness? I'm sure its probably something stupid, like me.

Thanks
MM
 
without having it doing anything but connect, it works for me, so your exception must be to do with something else in your code. Please post as much of it as you can that relates to the irc client component. If you are not dropping the indy irc client component on a form, definitely show where you are creating it.
 
Here is all the code relating to the irc client component. I dropped it on a form and simply filled in the details.
There are 3 buttons on the form, for connect, join a channel and disconnect. When i click the connect button it throws an access violation, so the other two buttons havent even been tested.

Code:
type
  TfrmChatTest = class(TForm)
    ircClient: TIdIRC;
    ...
    Button1: TButton;
    procedure Button1Click(Sender: TObject);

Code:
procedure TfrmChatTest.Button1Click(Sender: TObject);
begin
   ircClient.Connect;
end;

Code:
object ircClient: TIdIRC
    ConnectTimeout = 0
    Host = '127.0.0.1'
    IPVersion = Id_IPv4
    ReadTimeout = 0
    CommandHandlers = <>
    ExceptionReply.Code = '500'
    ExceptionReply.Text.Strings = (
      'Unknown Internal Error')
    Nickname = 'MMSC'
    AltNickname = 'MMSCU'
    Username = 'poo'
    RealName = 'dsfsdf'
    Replies.Finger = 'abc'
    Replies.Version = 'abc'
    Replies.UserInfo = 'abc'
    Replies.ClientInfo = 'abc'
    UserMode = []
    Left = 360
    Top = 92
  end
 
sry for my english but try communicate :)
try run your irc client without delphi's debugger

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top