Results 1 to 3 of 3

Thread: Threading Questions

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    181

    Threading Questions

    Hey. My program has a thread in it so that the main program doesn't get tied up when another forum is doing work. Whenever I try to abort the thread, I always get an error that the thread is trying to be aborted. Is this supposed to happen? Should I just be able to end it whenever I want, without getting an error? Any information on threads?

    Thanks
    John

  2. #2
    Frenzied Member vbdotnetboy's Avatar
    Join Date
    Jun 2004
    Location
    Lewisburg, PA "Next year Raiders in the Super Bowl"
    Posts
    1,310

    Re: Threading Questions

    i can't tell you much more then if you abort a thread that yes it raises an error or exception. it's the way the framework was designed... as i'm still learning with threads and using them myself. i know depending on what you're doing you might look into using the monitor class, but again i'm not to great with the threading thing yet.

    Derek - Using VS 2008 99% of the time and VS 2003 1% of the time

    Please Help Us To Save Ana

    ● Helpful Links: DNR TV | Awesome site for tips | Using ADO.NET to work with Excel | Xml Namespace 2.0 Framework Changes|Ultra High Security Password Generator | Mendhak's ADO.NET Tutorial
    ● Code Bank: Random Password Generator | Generic DbProviderFactory Access
    ● Site Work: Bottle Run Xtreme | Spaids Racing.com

    Company I work for - CSSI

    WHEN POSTING PLEASE INDICATE VERSION

    Please use vbcode tags or code tags when posting code
    [highlight=vb]ALL your code goes here[/highlight] or [code]ALL your code goes here[/code]

    If my post helped you in anyway... please be kind and give me some ratings

  3. #3
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Threading Questions

    Which version of .NET do you use?
    What is the exception exactly?
    It would be better of you post the portion of your code that throws the exception!
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width