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 to find Memory Over Flow ?

How to find Memory Over Flow ?

Scheduled Pinned Locked Moved C / C++ / MFC
helpdata-structuresdebuggingperformancetutorial
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
    Amarelia
    wrote on last edited by
    #1

    Hi guys I have developed one appication in which I have used many array variables and also used malloc and calloc functions to reserev memory and also tried to free all the memory. But because of some bug in it. After certain long time my application stops running. And if i see in Task Manager it shows all memory used. So I want to debug my application putting some debug statement in file or some statements through which I can get the exact memory at perticular sentence. Is there any such function which gives currently used memory or something which can help me... Regards Mahesh

    M 1 Reply Last reply
    0
    • A Amarelia

      Hi guys I have developed one appication in which I have used many array variables and also used malloc and calloc functions to reserev memory and also tried to free all the memory. But because of some bug in it. After certain long time my application stops running. And if i see in Task Manager it shows all memory used. So I want to debug my application putting some debug statement in file or some statements through which I can get the exact memory at perticular sentence. Is there any such function which gives currently used memory or something which can help me... Regards Mahesh

      M Offline
      M Offline
      mahade1
      wrote on last edited by
      #2

      Hi Mahesh.. I am not sure about the code part, but I am sure that if you can patiently go through your code, then 80% of your problem will be solved. Just remember that every time you use malloc, make sure that you are using calloc somewhere for that particular pointer. Regards Mahadevan

      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