Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8781319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:16:16+00:00 2026-06-13T20:16:16+00:00

I have an IRC bot and I’m trying to create a new thread to

  • 0

I have an IRC bot and I’m trying to create a new thread to do some work, the thread is called like this:

           case ".showfiles":
               if (!oThread.IsAlive)
                {
                    say("#channel", "> shared files are:");
                    //a class called shares is in x.cs
                    SHARES SHARED = new SHARES(); 
                    /called a method named begin_find
                    oThread = new Thread(new ThreadStart(SHARED.begin_find));
                    oThread.IsBackground = true;
                    oThread.Start();
                }
                break;

the method that’s being called is simply scanning all files in a folder.
if the above code doesn’t provide enough info i’ll post the rest but basically as soon as I type .showfiles the bot disconnects with no error, almost like its taken place of the parent thread..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:16:17+00:00Added an answer on June 13, 2026 at 8:16 pm

    As the Thread is IsBackground = true, the application does not wait for it and terminates as soon as all foreground threads completed. If this is the Main method, the program might immediately terminate and therefore disconnect your bot.

    This is, however, a guess, since the context of your code is not obvious.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a python IRC bot that I'm starting to work on to practice
For our company I'd like to have a Python based IRC bot which checks
i been trying to code an IRC bot, while i have succeed. I am
I have been figuring about and trying to make my IRC bot send private
I'm trying to run an irc bot with cakephp. My problem is referencing the
I'm having a bit of a problem. I am trying to create an IRC
i know virtually no java but i'm trying to learn some for this project.
I have a function irc_sendline that can be called like printf can irc_sendline(s, A
I have asked this question on twitter as well the #clojure IRC channel, yet
I have an IRC client application and I am currently trying to integrate it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.