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. Dynamic Memory allocation and Real Time applications

Dynamic Memory allocation and Real Time applications

Scheduled Pinned Locked Moved C / C++ / MFC
performancehelpcomtutorialquestion
2 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.
  • A Offline
    A Offline
    abc876
    wrote on last edited by
    #1

    I am bit concerned over the issue of fragmentation problem due to dynamic memory allocation in real time applications that have to run for long say 1 year. How to avoid it? What if in some scenario you must dynamically allocate the memory occasionaly of different block size? Any one here, who has developed some performance critical application which runs for long and have addressed these issues? Thanks Muhammad Shoaib Khan http://geocities.com/lansolution

    D 1 Reply Last reply
    0
    • A abc876

      I am bit concerned over the issue of fragmentation problem due to dynamic memory allocation in real time applications that have to run for long say 1 year. How to avoid it? What if in some scenario you must dynamically allocate the memory occasionaly of different block size? Any one here, who has developed some performance critical application which runs for long and have addressed these issues? Thanks Muhammad Shoaib Khan http://geocities.com/lansolution

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

      If memory is continually allocated but never freed, the program, and probably most everythying else, will come to a halt.


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

      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