More On DLL





More on DLL.


I’m back yet again, with more info, and detailed description of DLL.A brief description of what a dll is can be found in my previous blog Here


Why do we use DLL?

  • Code Re-usability
  • Efficient Memory Management
  • Easy deployment and installation
  • Security

  • Code Re-usability


    Code Re-usability is one one of the main highlighted reasons why DLL s are preferred since Same Code can be used for many applications


    Efficient Memory Management


    DLL can reduce the duplication of code that is loaded on the disk and in physical memory.Thus increasing the performance.In other words we can say that it helps in Efficient Memory Usage


    Easy deployment and installation


    Updates are easier to apply to each module without affecting other parts of the program.


    Security


    It provides modular architecture.so splitting an application into several modules makes it harder for crackers to crack the code


    DLL Hell?


    “DLL Hell” refers to the set of problems caused when multiple applications attempt to share a common component like a dynamic link library (DLL)

    In the most typical case, one application will install a new version of the shared component that is not backward compatible with the version already on the machine. Although the application that has just been installed works well, existing applications that depended on a previous version of the shared component might no longer work.
    This problem has been well addressed by .Net

    .Net Framework provides operating systems with a Global Assembly Cache. This Cache is a repository for all the .Net components that are shared globally on a particular machine. When a .Net component is installed onto the machine, the Global Assembly Cache looks at its version, its public key, and its language information and creates a strong name for the component. The component is then registered in the repository and indexed by its strong name, so there is no confusion between different versions of the same component, or DLL.

    HappyCoding ! 😉

    Advertisements

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )

    Connecting to %s

    %d bloggers like this: