There is a memory leak in TResourceFile, which will result in the loss of 32 bytes for every TResourceFile that is created. In TRESFILE.CPP in the definition of TResourceFile::TResourceFile() (near line 55): A THeader object is allocated but never deleted. Add the following line at the very end of the function definition. delete header; }