Heap corrupted error in c++
Hello I am having a considerable complex code written in c++ on visual studio 2015... I am randomly getting heap corruption error and couldn't trace... what I observed is that memory was not released ..so, I put delete at proper place for all dynamic memory allocation of char*.... additionally I ensured that char* size is string size plus one (for null character) during new allocation... with these two, i feel problem should be solved.. what is your view on this....? I have extensive singleton classes and it's static member pointer of class type is allocated once with new when it is null... I have not released memory of this new allocation of singleton classes.... hope this is fine nd would not corrupt memory... Feel free to ask in case I am not clear enough..