Life Cycle Management

In order to use an object, whether it's an instance of a .NET class or a COM class, the server for that object must be loaded into memory. In the case of COM, the COM runtime must load either an in-process server or an out-of-process server that contains the COM class into memory. In the case of .NET, the CLR must locate and load the assembly that contains the class. This is true in both the intra machine and inter machine (Internet) scenarios. After the CLR loads the assembly and creates an instance of the class, the class will likely acquire other resources on the system. The class instance (object) may open a file, allocate memory for a large string, or create a network or database connection.

If you created objects and ...

Get .NET and COM Interoperability Handbook, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.