I am writing a library in managed C++ for the .NET framework. I have problems fireing events from a worker thread. The managed event must be raised from the main thread, but I cannot find any way to pass control from the worker thread to the main thread.
I created a serviced component and added the attribute: [ObjectPooling(true,2,4)] I also override the CanBePooled tu return true. But it's not working, the object is never pooled.