Quote:
Originally Posted by Emufr3ak
Thank Ernst. This definitely pointed me in the right Direction. It's possible to implement new operators for new and delete. This did the trick.
|
To have more control and introspection I can recommend using Tiny Alloc
as a generic allocator (
https://github.com/thi-ng/tinyalloc).
I used it on an Amiga OCS C++ game project. I extended it to support multiple heaps and memory tracking to avoid leaks. Let me know if you need the sources.