Managed code & Unmanaged code

S

Swapnil

When to use Managed code & when to use unmanaged code in the application?
please give one example.
 
L

Lasse Vågsæther Karlsen

Swapnil said:
When to use Managed code & when to use unmanaged code in the application?
please give one example.

Examples for unmanaged code could be when you need to interface with
other unmanaged libraries a lot and interop would either add overhead or
the possibility of a bug in the translation of the header files.

Also, if you need to pull the last ounce of performance out of heavy
loops, like matrix multiplication code, where you need to hand-optimize
the code for a particular processor, then perhaps unmanaged code would
be better than managed as well.

Other than that I'd say use managed code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top