Additional thanks to Daniel Newby for answering my memory usage question (and Martin York to explain this a bit more). This is definitely the answer I was looking for, but my other questions were satisfied by others.
Thank you all
to fix all my problems. It is very nice to see how everything works, as I expect them to work.
I came across something that I'm not quite sure about.
In my program I do not use malloc()or free(). I make copies of their classes new, and I'm sure that each of them runs it destructor, he delete'd , but no calls free()or even establishing their own indicators (for things in the global scope, or other classes) to NULLor 0.
What I mean by "I made sure" is not what I call every destructor. I use delete only to call the destructor to start, but I have variables that increment by 1 each time the object is created, and every time the destructor starts. This is how I made sure that the number of objects created is equal to the number of destructors called.
Should I use malloc()and free()in any case? Should I be NULLpointers to things that I still want to exist?
The second question: why, when I look at my task manager, my process never "falls" into memory? Previously, she never stopped gaining momentum, and then I started normally deleting. Or so I thought.
Will free()or deletereduce memory usage?
What methods should be used for malloc'ing and free' memory with linked lists?
source
share