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