What is the best way to make an inproc COM server out of proc?
Posted on 2004-10-06
I have the inproc COM object that I do not have the source for. I want to make it an out of proc so I can share one instance between all processes. I want to do this the most efficient way possible from a performance standpoint. The inproc COM object can be assumed thread and process safe for simplicity.
I could of course simply wrap* the COM object with my own out of proc server but is there a better solution? Just for example aggregation or something (I don't know much about COM aggregation so it may not even apply).
*Just as a note a fellow developer was telling me that inproc COM calls have a small amount of performace overhead. I'm not sure if I totally believe that but if it is the case, perhaps wrapping the inproc object will do just fine.