You need to ensure that the memory usage of the application remains within a specific range

You are creating a Windows Presentation Foundation (WPF) application by using Microsoft
.NET Framework 4. You create a photo album-browsing application. When the user opens
an album, pictures in the album are displayed in sets of 10. Pictures are obtained from a
windows Communication Foundation (WCF) service. Most of the memory of the application
is allocated in the native heap. The memory usage of the application increases when new
albums are opened. You need to ensure that the memory usage of the application remains
within a specific range. What should you do?

You are creating a Windows Presentation Foundation (WPF) application by using Microsoft
.NET Framework 4. You create a photo album-browsing application. When the user opens
an album, pictures in the album are displayed in sets of 10. Pictures are obtained from a
windows Communication Foundation (WCF) service. Most of the memory of the application
is allocated in the native heap. The memory usage of the application increases when new
albums are opened. You need to ensure that the memory usage of the application remains
within a specific range. What should you do?

A.
Assign the null value to every variable pointing to a picture that is not displayed.
Implement the IDisposable interface.

B.
Load the pictures from the WCF service on a background thread. Implement the
IDisposable interface.

C.
Use a reduced color palette to render pictures.

D.
Use the NetTcpBinding binding to communicate with the WCF service.



Leave a Reply 0

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