multithreading - [SmartIrc4Net]: UI Freezing -


so i've run issue while creating 'bot' watch on 1 of irc channels, , once listen() command sent ui prone freezing... i'm aware may caused smartirc4net checking data , not...

so i've been trying implement thread using 3 of following ways... once start debug program no 'debug' message sent server, know fact 'bot' connecting , when new 'thread' not introduced application.

all 'bot' programming separated class library's, , have tried putting 'debug' application, , yields same annoying result.

my mind beyong boggled , here has assist me situation, fast humanly possible....

(notice: expect responses 13:00 / 15:30 24:00 gmt)

new thread(() => {    while(botconnection._isbotconnected)    {       botconnection.ircbot.listen();    } }); -- , -- threadstart ircthread = new threadstart(_irclisten); private static void _irclisten() {     botconnection.ircbot.listen(); } -- , -- threadstart listenthread = delegate {     botconnection.ircbot.listen(); }; new thread(listenthread).start(); 

i ended fixing problem doing following.

        threadstart listenthread = delegate         {             while(botconnection._isbotconnected)             {                 botconnection.ircbot.listen();                 botconnection.ircbot.rfcping("irc_url_con");             }          }; new thread(listenthread).start(); 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -