G
Guest
Hi,
I have a couple of questions relating to STA component that has been bugging
me.
If I have a STA component and I want to call one of its methods, which takes
some times to complete and so I want to run it on a threadpool by using
delegate.BeginInvoke().
Questions:
1) What kind of Apartment are the threads in the threadpool?
2) In legacy COM programming, I need to manually marshal the COM interface
pointer to the other Apartment.
If I simply pass the interface in .Net as a parameter when I call the
delegate.BeginInvoke(), will .Net marshals the interface for me?
If not, how do I to do this correctly?
Thanks.
Leon
I have a couple of questions relating to STA component that has been bugging
me.
If I have a STA component and I want to call one of its methods, which takes
some times to complete and so I want to run it on a threadpool by using
delegate.BeginInvoke().
Questions:
1) What kind of Apartment are the threads in the threadpool?
2) In legacy COM programming, I need to manually marshal the COM interface
pointer to the other Apartment.
If I simply pass the interface in .Net as a parameter when I call the
delegate.BeginInvoke(), will .Net marshals the interface for me?
If not, how do I to do this correctly?
Thanks.
Leon