thanks for your help and sorry for the duplicate topic.
Regards.
thanks for your help and sorry for the duplicate topic.
Regards.
Last edited by evariste; 02-07-2010 at 01:05 PM.
Well, there isnt really anything special about fixing memory leaks, especially when you can use a tool to verify if they are still present or not to make sure you get them all. Its just a mechanical process. Algorithm:
Of course "last" here doesnt mean "last/bottom in the file", it means last place it will be referenced during execution of the program.For every variable "foo" that you use "malloc" (or similar functions) on, simply look for the last (or second last, if some people are picky) place that that variable is referenced. Of those last 1 or 2 lines, it should contain "free(foo);".
Aside, I see a number of places in the code where your using "malloc" when theres absolutely no need for it. This just makes things more confusing, and even less efficient for your program. Use it only when you need to!
Thanks for the answer, i will check again and let you know.
Many regards.
Yeah, see my answers over on devshed.com
How To Ask Questions The Smart Way
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Yes and i reply to you on the same forum and i'm waiting for your suggestions.
Thanks.
you are in the 2 forums, so they are necessary both a good forums, and i have reason to post my question on both .
Regards.
Sure, but only after you fail to receive any satisfactory replies from one of them.Originally Posted by evariste
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
We have the choice to post our questions in the forum of our choice until we get a satisfied answer to our question! i don't know there is a problem!!! you can help me to answer my question and you can choose to not do. The world is open.
Regards.
if there is a polemic about my topic, i will close it. Thank you for your time spending to answer the questions of others.
Regards.
There is the matter of ettiquette. Consider this from the point of view of people helping you: people may take the time to help you, only to find out that their efforts were wasted because you already were given pretty much the same help.Originally Posted by evariste
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Thanks, topic is close.
Regards.