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

How to register com+ services?

527


What is transaction atomicity?

521


Define object pooling?

3251


Optimization technique description ?

1724


Explain the disadvantages of com components?

2766






What is reliability?

536


What are Interop Services?

546


Explain what are wrapper classes?

527


What are rcw?

496


Explain how to register com+ services?

3292


Is the com architecture same as .net architecture?

3111


Explain disadvantages of com components?

517


How CCW and RCW is working?

675


Define durability?

454


What happens when we instantiate a .NET component ?

4105