4 ms·
I've used delhanty's example in a large codebase and it worked well. Another approach is to create a static library that overloads global memory operators (new
by sourkremlin 12y ago
I've used delhanty's example in a large codebase and it worked well.
Another approach is to create a static library that overloads global memory operators (new, delete, and their variations). Link this static library to every DLL that you make, and have the implementation of these overloaded global memory operators use the heap of a single DLL. There may still be multiple heaps, but only one will be used.