Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastMM has detected a FreeMem call after FastMM was uninstalled #41

Open
MarcAntheunis opened this issue Jul 26, 2017 · 8 comments
Open

Comments

@MarcAntheunis
Copy link

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
Copy link
Author

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)

@pleriche
Copy link
Owner

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

@EMBBlaster
Copy link

So it is the same problem in #18

@MarcAntheunis
Copy link
Author

ok

@graemeg
Copy link

graemeg commented Dec 13, 2018

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.

@MarcAntheunis
Copy link
Author

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

@MarcAntheunis
Copy link
Author

for some reason InstHashMap is used apparently...

@MarcAntheunis
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants