Which of the following actions will you take?

You create a Windows application using .NET Framework 4.0. The application contains a function that makes use of a COM+ object written in C++. The function is used to get data from an isolated Web service application. You find that resources used by the application increase sooner or later. You also realize that in the list of processes in Task Manager, three instances of the Web service application exist.
Therefore, you are required to ensure that the application releases resources properly.
Which of the following actions will you take?
A. Invoke the ReleaseComObject method of the Marshal class after the function calls.
B. Invoke the Release method of the Marshal class after the function calls.
C. Invoke the Finalize method of the GC class after the function calls.
D. Invoke the SuppressFinalize method of the GC class after the function calls.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.