Click here to Skip to main content
16,004,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: Making a tray icon Pin
Otis_6930-May-04 17:39
Otis_6930-May-04 17:39 
GeneralRe: Making a tray icon Pin
Nathan Blomquist30-May-04 18:37
Nathan Blomquist30-May-04 18:37 
Generalhide console window Pin
Otis_6930-May-04 10:40
Otis_6930-May-04 10:40 
GeneralRe: hide console window Pin
Stefan Troschuetz30-May-04 22:18
Stefan Troschuetz30-May-04 22:18 
GeneralRe: hide console window Pin
Otis_6931-May-04 9:33
Otis_6931-May-04 9:33 
GeneralRe: hide console window Pin
Stefan Troschuetz31-May-04 10:33
Stefan Troschuetz31-May-04 10:33 
GeneralRe: hide console window Pin
Otis_6931-May-04 11:43
Otis_6931-May-04 11:43 
GeneralForce termination of a thread Pin
Otis_6930-May-04 10:17
Otis_6930-May-04 10:17 
OMG, this is my second time writing this, cause last time i wasnt logged in, and i clicked submit, and it said i needed to login, so i hit back to copy/paste my post into notepad, and it was gone... arrgh. Anyways:

I have a class, lets call it "IrcBot". Now, i instanciate it like this:

IrcBot mybot = new IrcBot("server","channel","nick");

now, in my main class, i make a thread (or 10) all going to the same, or different irc servers... like this:

Thread t = new Thread(new ThreadStart(mybot.connect));<br />
t.Start();


seeing as there is no way to terminate the connection from the bot to the irc server, i cant terminate the thread, cause the thread is still doing something... In english, when i do t.Abort(); it doesnt stop and the bot is still in the irc server in that channel... How can i force the thread to stop regardless of whether its doing something or not?

Thanks for the help :P



//Otis
GeneralRe: Force termination of a thread Pin
Otis_6930-May-04 15:07
Otis_6930-May-04 15:07 
GeneralRe: Force termination of a thread Pin
Otis_6930-May-04 17:41
Otis_6930-May-04 17:41 
GeneralStream to String Pin
Meysam Mahfouzi30-May-04 8:29
Meysam Mahfouzi30-May-04 8:29 
GeneralRe: Stream to String Pin
leppie30-May-04 10:10
leppie30-May-04 10:10 
QuestionHow do I Create Lable Dynamically Pin
Anonymous30-May-04 7:53
Anonymous30-May-04 7:53 
AnswerRe: How do I Create Lable Dynamically Pin
Peff30-May-04 8:30
Peff30-May-04 8:30 
GeneralRemoting with Events Pin
Wouter Van Ranst30-May-04 7:23
Wouter Van Ranst30-May-04 7:23 
GeneralRemoting with Events Pin
Wouter Van Ranst30-May-04 7:20
Wouter Van Ranst30-May-04 7:20 
GeneralRe: Remoting with Events Pin
Wackatronic1-Jun-04 10:08
Wackatronic1-Jun-04 10:08 
GeneralRe: Remoting with Events Pin
Wouter Van Ranst1-Jun-04 10:15
Wouter Van Ranst1-Jun-04 10:15 
GeneralRe: Remoting with Events Pin
Wackatronic1-Jun-04 10:18
Wackatronic1-Jun-04 10:18 
GeneralDataset Merge Pin
MrJJKoolJ30-May-04 6:59
MrJJKoolJ30-May-04 6:59 
GeneralRe: Dataset Merge Pin
Wouter Van Ranst30-May-04 7:31
Wouter Van Ranst30-May-04 7:31 
GeneralArray object Empty Pin
MrJJKoolJ30-May-04 6:02
MrJJKoolJ30-May-04 6:02 
GeneralRe: Array object Empty Pin
Colin Angus Mackay30-May-04 11:40
Colin Angus Mackay30-May-04 11:40 
GeneralRe: Array object Empty Pin
MrJJKoolJ31-May-04 3:06
MrJJKoolJ31-May-04 3:06 
GeneralRe: Array object Empty Pin
Colin Angus Mackay31-May-04 4:16
Colin Angus Mackay31-May-04 4:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.