Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

IRC Client freezing up

Hello,

I'm writing an IRC client(just to learn C#), and I'm using class/namespace I found on the web:

http://www.developerfusion.com/show/4581/


that one, I tried to take it from a console application to a windows form application, I removed the cIrc class, and just used the base class IRC.

My problem is, when I connect, the windows form freezes up, but the applicaiton continues to run, and the application connects to the IRC Server. The form doesn't respond, and I have to alt-ctrl-delete it.

I'm really new to C# (Coming from PHP), so I don't really understand what's going on behind.

Can someone explain a way to keep the windows form responding? I'm using multicast delegates (learned the term from my C# book).


Heres my code:
http://www.jeromegagner.com/csharphelp/formcode.html

the form using the IRC class

then I have the class here:

http://www.jeromegagner.com/csharphelp/ircclass.html

I have no clue how to solve this problem.

Thanks for your help

Jerome Gagner
Thursday, September 16, 2004

The reason is that your IRC client is doing blocking network I/O on the thread that the user interface also relies upon for functioning.

The easiest, although perhaps most dangerous thing, is that you could thread the IRC client code.

Brad Wilson (dotnetguy.techieswithcats.com)
Friday, September 17, 2004

*  Recent Topics

*  Fog Creek Home