FastMM4 icon indicating copy to clipboard operation
FastMM4 copied to clipboard

FastMM has detected a FreeMem call after FastMM was uninstalled

Open MarcAntheunis opened this issue 7 years ago • 8 comments

hi, i get this error only on windows 7 vm in win 10 all goes well build with latest fastmm and 10.2 Tokyo any idea how to get rid of this (besides turning NeverUninstall on)?

tia, Marc

MarcAntheunis avatar Jul 26 '17 08:07 MarcAntheunis

it has to do with the following code in system.pas finalization section:

FinalizeLocaleDate; if PreferredLanguagesOverride <> nil then FreeMem(PreferredLanguagesOverride);

the freemem is the one to blame apparently...

(10.2 tokyo)

MarcAntheunis avatar Jul 26 '17 13:07 MarcAntheunis

This is a known issue: https://quality.embarcadero.com/browse/RSP-16796

pleriche avatar Jul 27 '17 15:07 pleriche

So it is the same problem in #18

EMBBlaster avatar Jul 27 '17 16:07 EMBBlaster

ok

MarcAntheunis avatar Jul 28 '17 07:07 MarcAntheunis

Is there any solution to this yet? I'm using Delphi Tokyo 10.2.2 as well.

[edit] Looking at the System.pas unit, I thought that adding the following code at the end of my application's program unit will work around the problem, but it doesn't. The error is still happening. So is the code that MarcAntheunis mentioned actually the problem?

program xyz;
begin
   .....snip...

SetLocaleOverride('');
end.

graemeg avatar Dec 13 '18 17:12 graemeg

i've upgraded components in Tokyo and the problem is back again… setlocaloverride('') does not work anylonger

MarcAntheunis avatar Dec 18 '18 13:12 MarcAntheunis

for some reason InstHashMap is used apparently...

MarcAntheunis avatar Dec 18 '18 13:12 MarcAntheunis

in my case the Remobjects Dataabstract latest release is the one that introduces a weak reference…

MarcAntheunis avatar Dec 18 '18 14:12 MarcAntheunis