Aborting Thread. How to exit blocking call.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Aborting Thread. How to exit blocking call.

  1. #1
    Join Date
    Aug 2005
    Posts
    19

    Aborting Thread. How to exit blocking call.

    Suppose I have spawned a thread that makes a blocking call. What happens if that blocking call doesn't want to return and I call a Thread.Abort() on it? I have one that doesn't handle the exception until the call decides it is time to exit.

    Anyone know if this is supposed to work like this?

  2. #2
    Join Date
    Nov 2004
    Location
    Oslo
    Posts
    73
    In the spawned thread you should apply a TryCatch which handles the ThreadAbortException. If this doesn't work I would concentrate on solving the blocking thread programmaticly...
    oes

Similar Threads

  1. Learning Help
    By Carlos in forum Java
    Replies: 3
    Last Post: 07-31-2005, 06:17 PM
  2. Replies: 5
    Last Post: 04-27-2005, 07:07 PM
  3. Winsock32, Connect fails to connect to a peer
    By Chris.G in forum VB Classic
    Replies: 4
    Last Post: 11-13-2000, 04:16 PM
  4. NetUserEnum Api
    By Mike in forum VB Classic
    Replies: 2
    Last Post: 04-24-2000, 04:30 PM
  5. NetUserEnum Api
    By Mike in forum VB Classic
    Replies: 0
    Last Post: 04-24-2000, 04:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center