doubt on COM components

  • Thread starter Thread starter kn_kirankumar
  • Start date Start date
K

kn_kirankumar

I heard that we should try to avoid COM components as
possible as much while developing an application in .NET,
Why we need to avoid COM components?
Is there any serious reason?
 
I heard that we should try to avoid COM components as
possible as much while developing an application in .NET,
Why we need to avoid COM components?
Is there any serious reason?

Using COM components causes a lot of marshalling overhead which may
reduce performance and consume memory.
 
You should use .NET components if they are available. But for a robust
application you many need to use some COM components. They will work just
fine, but the interface between .NET and COM inserts some overhead, so if
you are hitting the COM components thousands of times a second you will
probably see some performance degradation.

-Sam Matzen
 
I heard that we should try to avoid COM components as

In addition to the other comments, one final reason for not using COM
coponents is that it complicates deployment. You no longer have XCopy
deployment and have to register the COM components on the target machine.
Thus, the possibility of "dll hell" still exists.

Like any tool, use them where necessary.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Back
Top