Thread/ COM Connection point
-
Hi, I've got a question about a com interface that is a bit slow, so I've put it into a worker thread that seems to go ok. The trouble is this interface takes a connection point interface to report events. By the time the thread has terminated, and thus unitializes com for the thread, not all the events have been fired for the com interface. I was wondering what's the best way to get all the events before the thread returns. Thanks. Festina, vita breve est!
-
Hi, I've got a question about a com interface that is a bit slow, so I've put it into a worker thread that seems to go ok. The trouble is this interface takes a connection point interface to report events. By the time the thread has terminated, and thus unitializes com for the thread, not all the events have been fired for the com interface. I was wondering what's the best way to get all the events before the thread returns. Thanks. Festina, vita breve est!
I worked it out, the CoInitialize() call was putting the thread in an STA, but there was no Message pump to process messages and so COM sat around waiting for ever. Who says MSDN help can't be useful sometimes? Festina, vita breve est!