Multithreading and Reflection question?
-
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!
-
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!
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