top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What is a native image?

+4 votes
43 views

How do u create one ?

posted Jul 29, 2014 by Muskan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
  • A native binary image for the current operating systems is generated by the Native Image Generator (Ngen.exe).

  • They are stored in a native image cache on the local computer.

  • It restores the code and data structures from the native image cache rather than generating them dynamically because it allows the assembly to load and execute faster.

  • By using the native images it will benefit the applications by improving their startup times.

  • .NET runtime will use the image after it is generated to run the code rather than from the hard disk.

  • Once an assembly is executed, the CLR first looks for a native image based on the above factors and if it is not found, it will revert to the JIT runtime compilation.

  • When compared to Native Image, MSIL code is loading slow because of JIT compilation and type-safety verification.

Usage of native image:

1.ngen install MyApp.exe

This command generates a native image for MyApp.exe which is located in the current directory, and it will install the image in the native image cache.

2.ngen install c:\project\MyApp.exe

This command generates a native image for MyApp.exe with the specified path.

Uninstall

  1. ngen uninstall c:\project\MyDll.dll /ExeConfig:c:\project\MyApp.exe
    This command will uninstall the MyDll.dll.
answer Jul 19, 2017 by Manikandan J
Similar Questions
+4 votes

How can I save image in SQL SERVER by VB.NET?

+3 votes

How to create a fluent interface ?

+4 votes
+9 votes

Please can anyone tell me the basic steps to create and use a delegate.

+1 vote

I am new to react-native and I want to add an image to map marker. The image I am getting is from remote URL and want t set that image on the map marker.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...