PrepAway - Latest Free Exam Questions & Answers

You need to decide how your application will handle unmanaged memory

You are developing an application by using Visual C.NET and Visual Basic .NET. The application will use functions from a DLL written in unmanaged code.

One function requires the calling application to allocate unmanaged memory, fill it with data, and pass the address of the memory to the function. On returning from the function, the calling application must deallocate the unmanaged memory.

You need to decide how your application will handle unmanaged memory.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Use a byte array.

B.
Use the methods of the Marshal class.

C.
Use the methods of the MemoryStream class.

D.
Derive a new class from the Stream class, and override the allocation methods.


Leave a Reply