I am trying to create a COM component where it will be often called by the excel application (excel will load COM when it is initialized), and another process (say procA) also sends (with high frequency) Windows messages to this component. I have currently implemented COM as an STA, however, I have experienced that while COM is busy processing messages from procA, the excel user interface is stuck.
Please help me get around this problem. Can I just create a simple window thread for processing messages from procA, while saving COM as an STA model? Or do I need to make COM as an MTA model, if so, explain how to handle this.
thank
source
share