Chapter 6. Advanced Topics for Using COM Components

In This Chapter

Do-It-Yourself Marshaling

Threading and Apartments

Troubleshooting an InvalidCastException

Garbage Collection

Securing Unmanaged Calls

Using COM+ and DCOM Objects

Inheriting from COM Classes

Debugging into COM Components

Monitoring Performance

The previous three chapters covered a lot of information that should help you use most COM components within .NET components and applications, especially if the author of the COM component has produced a customized Primary Interop Assembly. This chapter focuses on a handful of advanced topics that should help you use any COM components in .NET:

• Do-it-yourself marshaling

• Threading and apartments

• Troubleshooting ...

Get .NET and COM: The Complete Interoperability Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.