L
Lior Amar
Quick question about threads and delegates.
I have the following scenario
Thread A (CLASSA) spawns Thread B (CLASSB) and passes it a DelegateA to a
callback
Thread B Invokes a DelegateB asynchronously (could be a timer but then we
get Thread C)
Upon completion of DelegateB, Thread B would like to callback ThreadA using
DelegateA but as we all know the call to DelegateA is running in ThreadB. Is
there anyway to get Thread B to call a method in Thread A.
My Problem is that I need to notify a single threaded COM object that work
has been completed. I can do this by raising an event to that COM object but
if that Object tries to use any pointer that he currently has then POW(which
makes sense).
I've coded something very similar in C++ and am wondering if this can be
done from VB.NET? Otherwise I'll just port my C++ code to V7.
Thanks,
Lior
I have the following scenario
Thread A (CLASSA) spawns Thread B (CLASSB) and passes it a DelegateA to a
callback
Thread B Invokes a DelegateB asynchronously (could be a timer but then we
get Thread C)
Upon completion of DelegateB, Thread B would like to callback ThreadA using
DelegateA but as we all know the call to DelegateA is running in ThreadB. Is
there anyway to get Thread B to call a method in Thread A.
My Problem is that I need to notify a single threaded COM object that work
has been completed. I can do this by raising an event to that COM object but
if that Object tries to use any pointer that he currently has then POW(which
makes sense).
I've coded something very similar in C++ and am wondering if this can be
done from VB.NET? Otherwise I'll just port my C++ code to V7.
Thanks,
Lior