G
gkellymail
In general what I would like to do is have an application with X number
of threads and then be able to call a method and have it execute in the
thread of my choice. What would be the best way to accomplish this?
One reason I want to do this is that I'm working on a asp.net
application. This app will use an acitveX control that will generate
map images for me. This activeX control also must run in a thread with
appartment state STA. So, after this thread creates an instance of
this activeX control I would like it to "sleep" and wait to be told
what to do.
I could use events but I would rather be able to simply instruct the
"sleeping" thread to execute the method of my choice and pass
parameters as you normally word a method.
any ideas?
of threads and then be able to call a method and have it execute in the
thread of my choice. What would be the best way to accomplish this?
One reason I want to do this is that I'm working on a asp.net
application. This app will use an acitveX control that will generate
map images for me. This activeX control also must run in a thread with
appartment state STA. So, after this thread creates an instance of
this activeX control I would like it to "sleep" and wait to be told
what to do.
I could use events but I would rather be able to simply instruct the
"sleeping" thread to execute the method of my choice and pass
parameters as you normally word a method.
any ideas?