pleriche / FastMM4

A memory manager for Delphi and C++ Builder with powerful debugging facilities
446 stars 157 forks source link

Via StackOverflow: FastMM should check DLL version number #76

Open jpluimers opened 5 years ago

jpluimers commented 5 years ago

From https://stackoverflow.com/questions/22461755/does-calling-fastmm4-logallocatedblockstofile-periodically-use-up-memory-space:

I have tracked this down to be a version mismatch of the support library FastMM_FullDebugMode.dll.

An older version of the library works with the newer version compiled into the executable. There seems to be no check that versions do match. However, modules don't really work together at run-time.

I think it is wise to add a version check so FastMM ensures the DLL is of the same version (or maybe a compatible version, but that makes version checking logic more cumbersome).