Difference between COM and .NET component ?

Answer Posted / virat sarswat

Correcting Rajeev's answer
COM vs .NET Component

.NET Component=Object based communication
COM=Interface based communication

.NET Component=Garbage Collector to manage memory
COM=Reference count will be used to manage memory

.NET Component=Type Standard objects
COM=Binary Standard objects

.NET Component=Objects are created by normal new operator

COM=Objects are created by coCreateInstance

.NET Component=Exceptions will be returned
COM=HRESULT will be returned

.NET Component=Object info resides in assembly files
COM=Object info resides in Type library

Is This Answer Correct ?    23 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define integrity?

3319


How to register com+ services?

689


Optimization technique description ?

1911


how to register dll in COM / COM+ application

7302


Explain how does you handle this com components developed in other programming languages in .net?

651


Define transaction atomicity?

3259


Is it true that COM objects no longer need to be registered on the server?

695


What is the difference between com architecture and .net architecture?

677


What are Interop Services?

725


What is jit activation?

704


What happens when we instantiate a .NET component ?

4284


Can .NET Framework components use the features of Component Services?

675


Explain the use of contextutil class?

3391


Explain the disadvantages of com components?

2944


Explain the new three features of com+ services, which are not there in com (mts)?

3559