Hi I made a vector of shared pointers and when I set the pointer to NULL it should delete the memory right? Opened my task manager got the memory from 780 to 792 and it has not gone down one bit even though a good few kilos of memory were supposed to have been deleted
It is not possible to measure how much memory a program is using, only how much memory it has allocated. When you stop using memory it does not necessarily deallocate it.
Also, you should not set smart pointers to null - just remove them from the container.
The same happens when I login with a new client to my game the memory on task manager goes up but when I close the client the memory in the server is not deallocated. I am also using the delete keyword as my client allocation uses standard pointers. Planning to change them soon