Difference between COM and .NET component ?

Answer Posted / rajeev

COM vs .NET Component

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

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

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

COM=Objects are created by normal new operator
.NET Component=Objects are created by coCreateInstance

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

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

Is This Answer Correct ?    7 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

643


What is durability?

697


What is reliability?

714


Explain the disadvantages of com components?

2942


Is the com architecture same as .net architecture?

3289


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

675


What is manageability?

735


Define transaction atomicity?

3254


What is ccw?

3366


Explain how to register com+ services?

3469


What are loosely coupled events?

3030


How CCW and RCW is working?

840


Optimization technique description ?

1904


Is com+ dead?

709


What happens when we instantiate a .NET component ?

4277