Skip to Content
.NET and COM Interoperability Handbook, The
book

.NET and COM Interoperability Handbook, The

by Alan Gordon
December 2002
Intermediate to advanced
720 pages
17h 39m
English
Pearson
Content preview from .NET and COM Interoperability Handbook, The

Summary

In this chapter, you learned about some of the advanced aspects of COM Interop from the perspective of a .NET client talking to a COM object. You learned about the object life cycle implications of COM Interop, that is, that a COM object when used through COM Interop will behave like a managed object because the RCW will hold a reference to the object until the RCW is garbage collected. If you want to destroy your COM object immediately after its use, you will need to call the ReleaseComObject method on the System.Runtime.InteropServices.Marshal class.

You next learned how COM events map to managed events. You learned that, even though this mapping is difficult to understand, it is trivial to use. I next turned my attention to how COM-rich ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

.NET and COM: The Complete Interoperability Guide

.NET and COM: The Complete Interoperability Guide

Adam Nathan
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 013046130XPurchase book