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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. memory allocation

memory allocation

Scheduled Pinned Locked Moved C / C++ / MFC
performancetutorial
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.
  • M Offline
    M Offline
    Martial Spirit
    wrote on last edited by
    #1

    How to determinate the memory allocated in a specific dll module. my software crashed in scilence, the only reason is I loaded too big pictures, and I called some function in specific dll, so I'm wondering how many bytes my dll allocated for me. thank you ! Best Regards

    D 1 Reply Last reply
    0
    • M Martial Spirit

      How to determinate the memory allocated in a specific dll module. my software crashed in scilence, the only reason is I loaded too big pictures, and I called some function in specific dll, so I'm wondering how many bytes my dll allocated for me. thank you ! Best Regards

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      One way is to walk the heap-block list. See here for an example. You could also use performance counters. See here for an example.


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      M 1 Reply Last reply
      0
      • D David Crow

        One way is to walk the heap-block list. See here for an example. You could also use performance counters. See here for an example.


        "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

        M Offline
        M Offline
        Martial Spirit
        wrote on last edited by
        #3

        Thanks! I read the articles you put here, I think the heap-block list maybe helpful, but performance counter only give the memory used by process itself, cannot see the dll inside of it. Best Regards

        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