Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How many times DLL loaded for different Application?

How many times DLL loaded for different Application?

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformance
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hasansheik
    wrote on last edited by
    #1

    hi all, I am new to DLLs. I have one doubt on dll loading. if two or more different applications use a same dll. how many instance of the dll will be loaded in memory. My Question is whether each application will has its own instance of the dll. or just one instance of the dll will be loaded and all applications have its mapping to the single instance. please clarfy me. thankyou in advance Mohamed Hasan S

    J 1 Reply Last reply
    0
    • H hasansheik

      hi all, I am new to DLLs. I have one doubt on dll loading. if two or more different applications use a same dll. how many instance of the dll will be loaded in memory. My Question is whether each application will has its own instance of the dll. or just one instance of the dll will be loaded and all applications have its mapping to the single instance. please clarfy me. thankyou in advance Mohamed Hasan S

      J Offline
      J Offline
      John M Drescher
      wrote on last edited by
      #2

      The code will have one instance but data will have one instance for each appliction that is using the dll. You can use a shared data segment to share data between processes if you want, in this case this data will only have one instance. John

      H 1 Reply Last reply
      0
      • J John M Drescher

        The code will have one instance but data will have one instance for each appliction that is using the dll. You can use a shared data segment to share data between processes if you want, in this case this data will only have one instance. John

        H Offline
        H Offline
        hasansheik
        wrote on last edited by
        #3

        thankyou jonh

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups