Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Enterprise
Expertise: All
Jan 20, 2000

Try to Implement COM Server Objects As In-Process If Possible

COM objects can be implemented either in-process or local. The former is implemented as a DLL and runs in the same process space as the client. They become a part of the client program when loaded. On the other hand, local objects are implemented as executables and run in their own process space.

When they are created, the executable's program is loaded and runs along with the client program. Internally each process is allocated its own stack. The in-process object is fast because it can access the common stack compared to the local objects, which have to go through marshalling/unmarshalling of data for data movement between two processes, and hence two stacks.

Thus, it is advisable to develop COM objects as in-process components because these two implementations can result in a large difference in performance.

Jai Bardhan
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date