What should you do?

You are creating a Windows application by using the .NET Framework 3.5.The application makes function calls to an unmanaged library to control the operation of a robot. You create a class that consumes significant memory during function calls to the unmanaged library. You discover that memory consumption increases over time. You need to ensure that the application consistentlyconsumes minimum memory. What should you do?

You are creating a Windows application by using the .NET Framework 3.5.The application makes function calls to an unmanaged library to control the operation of a robot. You create a class that consumes significant memory during function calls to the unmanaged library. You discover that memory consumption increases over time. You need to ensure that the application consistentlyconsumes minimum memory. What should you do?

A.
Use the Finalize method.

B.
Use the GC.Collect method.

C.
Use the IDisposable interface.

D.
Use the GC.SuppressFinalize method.



Leave a Reply 0

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