I have developed my first COM component (yes, a newbie in the realm of COM development), initialization is done with COINIT_MULTITHREADED. Also, this COM component is a local server executable. But, I did not add any synchronization code to this component. What do you think: do I have to add CRITICAL_SECTIONs to code or MS COM architecture handles it for me? Thanks in advance.
I have developed my first COM component (yes, a newbie in the realm of
Share
Since you specified COINIT_MULTITHREADED, COM allows several simultaneous calls to your server and thus you need to do the synchronization yourself.
Use COINIT_APPARTMENTHREADED if you want COM to serialize the calls.
See MSDN for the details.