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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

MarxF

@MarxF
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to unload WinHttp library?
    M MarxF

    I'm not sure I understand your question... I have no memory leaks and I see the memory usage increasing at every new created thread. So I presume that the "per-thread" heap memory is not released by the call to FreeLibrary().

    C / C++ / MFC performance help tutorial question announcement

  • How to unload WinHttp library?
    M MarxF

    My code looks like this:

    int CMainClass::Start()
    {
    .......
    for(int = 0; iGetList(); // I need a method in the CMainClass
    return 0;
    }
    ........
    int CMainClass::GetList()
    {
    HINSTANCE hLibrary = LoadLibrary(L"winhttp.dll");
    ........
    // Call some winhttp.dll functions.
    ........
    FreeLibrary(hLibrary);
    return 0;
    }

    My problem is that despite the call to FreeLibrary(), winhttp.dll is not unloaded. Each new thread I create allocate memory in the heap, but the call to FreeLibrary() does not release that memory. Is there a way to force the unloading of the library and the release of the memory? Thank you!

    C / C++ / MFC performance help tutorial question announcement
  • Login

  • Don't have an account? Register

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