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. FreeLibrary takes much time(45 sec) to free a Win32 dll

FreeLibrary takes much time(45 sec) to free a Win32 dll

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminjson
6 Posts 2 Posters 16 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.
  • G Offline
    G Offline
    gbabu17
    wrote on last edited by
    #1

    Hi, I have dll which is loaded using LoadLibrary and freed using FreeLibrary. The functionality of dll is to send a https request to a server and get the response. I am using wininet library for sending and receiving http data. my sequence of wininet api functions are InternetOpen InternetConnect HttpOpenRequest HttpSendRequest InternetReadFile I closed all the handles corresponding to above. any suggestions. thanks

    T 1 Reply Last reply
    0
    • G gbabu17

      Hi, I have dll which is loaded using LoadLibrary and freed using FreeLibrary. The functionality of dll is to send a https request to a server and get the response. I am using wininet library for sending and receiving http data. my sequence of wininet api functions are InternetOpen InternetConnect HttpOpenRequest HttpSendRequest InternetReadFile I closed all the handles corresponding to above. any suggestions. thanks

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      gbabu17 wrote:

      FreeLibrary takes much time(45 sec) to free a Win32 dll

      We can't comment on any custom dll without seeing actually, what is coding has been done in that particular dll!

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

      G 1 Reply Last reply
      0
      • T ThatsAlok

        gbabu17 wrote:

        FreeLibrary takes much time(45 sec) to free a Win32 dll

        We can't comment on any custom dll without seeing actually, what is coding has been done in that particular dll!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

        G Offline
        G Offline
        gbabu17
        wrote on last edited by
        #3

        Hi alok, Ya i know it is difficult to suggest without seeing the code. I have tried to debug the dll in all possible ways and i found that if i do not send the request i dll is freed normally, but if i use the wininet api for sending the requests and getting response it is taking much time to free the library. i mean to ask wininet.lib internally takes much time to get freed. thanks

        T 1 Reply Last reply
        0
        • G gbabu17

          Hi alok, Ya i know it is difficult to suggest without seeing the code. I have tried to debug the dll in all possible ways and i found that if i do not send the request i dll is freed normally, but if i use the wininet api for sending the requests and getting response it is taking much time to free the library. i mean to ask wininet.lib internally takes much time to get freed. thanks

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          gbabu17 wrote:

          i mean to ask wininet.lib internally takes much time to get freed.

          WinInet api are very heavy!.. might be its closing net/Socket connection that might be taking time to unload!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

          G 1 Reply Last reply
          0
          • T ThatsAlok

            gbabu17 wrote:

            i mean to ask wininet.lib internally takes much time to get freed.

            WinInet api are very heavy!.. might be its closing net/Socket connection that might be taking time to unload!

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

            G Offline
            G Offline
            gbabu17
            wrote on last edited by
            #5

            hi, so is there some way to trace them, which is taking time to unload.

            T 1 Reply Last reply
            0
            • G gbabu17

              hi, so is there some way to trace them, which is taking time to unload.

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              gbabu17 wrote:

              so is there some way to trace them, which is taking time to unload.

              use profilers

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

              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