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. C#
  4. Multithreading and Reflection question?

Multithreading and Reflection question?

Scheduled Pinned Locked Moved C#
questionwinformshelptutorialcareer
2 Posts 2 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.
  • R Offline
    R Offline
    Rojan Gh
    wrote on last edited by
    #1

    Hi everyon.:) I have a Library project that is gonna' become a dll file that is gonna' be used as a plugin for another windows forms project. I have written the interfaces and other things to do the plugin managment and other things but now I am gonna' write the plugin and the plugin is gonna' do a time-critical job and the question here is that: Is the thread that plugin is gonna' use the same as main program? If the answer is yes: How to invoke a method from a recently started thread to the main thread in a simple class(not a form or control or a component class)? Thanx for your help. :rose::)

    Sojaner!

    D 1 Reply Last reply
    0
    • R Rojan Gh

      Hi everyon.:) I have a Library project that is gonna' become a dll file that is gonna' be used as a plugin for another windows forms project. I have written the interfaces and other things to do the plugin managment and other things but now I am gonna' write the plugin and the plugin is gonna' do a time-critical job and the question here is that: Is the thread that plugin is gonna' use the same as main program? If the answer is yes: How to invoke a method from a recently started thread to the main thread in a simple class(not a form or control or a component class)? Thanx for your help. :rose::)

      Sojaner!

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The code runs in the thread that called it. If the UI thread called the code, then it runs in the UI thread. If it's called by a child thread, then it runs in the child thread.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      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