I recently ran into some hard to find memory leaks. The program only runs on Linux. The memory leaks are detected using a custom memory allocator (using an atomic counter for allocation/deallocation size). In single thread mode, the program terminated without leaking, but running in multithread mode resulted in 1.7 to 4 KB of leaked […]
C++ Serialization
December 8, 2010 by Leave a Comment
I’m working on a project where I need to dump out object data for both debugging purpose as well as a way to store them persistently. My initial implementation which overloads C++ iostream for each of the objects proven to be inadequate when the amount of data I’m writing out become larger and more complex. […]