Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. vb.net thread problem

vb.net thread problem

Scheduled Pinned Locked Moved Visual Basic
csharpcomhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jaseem ahmad
    wrote on last edited by
    #1

    Hi all, I have a problem using multithread application with vb.net . I am opening a thread ,inside that thread i am calling third party DLL function . but that function internally opening child threads . whenever I am aborting the main thread , child thread is not aborting . is that any function to close the main as well as child thread. Jaseem Emirates group email: tc02142@emirates.com

    R S 2 Replies Last reply
    0
    • J jaseem ahmad

      Hi all, I have a problem using multithread application with vb.net . I am opening a thread ,inside that thread i am calling third party DLL function . but that function internally opening child threads . whenever I am aborting the main thread , child thread is not aborting . is that any function to close the main as well as child thread. Jaseem Emirates group email: tc02142@emirates.com

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      Not unless you are getting a handle on those internal child threads and can then call abort on them. Seems to me that those internal threads should have been created with the background attribute set or the library should provide you with a method to call to close them down.


      My Blog[^]
      FFRF[^]


      1 Reply Last reply
      0
      • J jaseem ahmad

        Hi all, I have a problem using multithread application with vb.net . I am opening a thread ,inside that thread i am calling third party DLL function . but that function internally opening child threads . whenever I am aborting the main thread , child thread is not aborting . is that any function to close the main as well as child thread. Jaseem Emirates group email: tc02142@emirates.com

        S Offline
        S Offline
        Steve Pullan
        wrote on last edited by
        #3

        Are you sure the DLL is spawning threads? If that were the case, destroying the main thread should kill all other threads created by it. Most likely the DLL is spawning a new process which runs independently of your main code and hence it will not terminate when your main thread terminates. In this case you'll need to manually kill the spawned processes as already described in the previous post. ...Steve 1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-) -- modified at 19:21 Tuesday 20th June, 2006

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups