Variant conversion gets blocked when calling from same ComThread.
For example, this happens in asynchronous COM event handling when
iterating through properties of received COM object in event handler:
The above code will block in iterator part when retrieving and converting Variants.
The solution is to do conversion in Variant's ComThread if the same as calling ComThread.
Variant conversion gets blocked when calling from same
ComThread
. For example, this happens in asynchronousCOM
event handling when iterating through properties of receivedCOM
object in event handler:The above code will block in iterator part when retrieving and converting
Variant
s. The solution is to do conversion inVariant
'sComThread
if the same as callingComThread
.