PrepAway - Latest Free Exam Questions & Answers

What should you do?

You create a Windows application by using the .NET Framework 3.5.
The application has a function that uses a COM+ object written in C++. The function is used to retrieve
data from a separate weather service application.
You discover that resources used by the application increase over time. You also discover that in the list of
processes in Task Manager, three instances of the weather service application exist.
You need to ensure that the application releases resources properly.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Call the GC.Collect method after the function call.

B.
Call the Marshal.Release method after the function call.

C.
Call the Marshal.ReleaseComObject method after the function call.

D.
Call the GC.ReRegisterForFinalize method after the function call.


Leave a Reply