We are getting a THook.Disable bug reported from Madexcept


We use MadExcept 5.1 , Delphi 10.2 and our app is compiled to 64 bit. We also use gnugettext
https://github.com/zijianhuang/CommonDe ... ettext.pas
It is happening on LoadLibrary, which works 99% of the time, so i don't think it is actually a problem with the dll, also this same error happens with other dlls in the program seemingly at random.
I know gnugettext.pas uses THook to do the translation.
Is it possible the THook could be conflicting with madexcept Hooking ?
Or any ideas what else could cause this exception.
gnugettext uses this code initialisation
Code: Select all
// replace Borlands LoadResString with gettext enabled version:
HookLoadResString:=THook.Create (@system.LoadResString, @LoadResStringA);
HookLoadStr:=THook.Create (@sysutils.LoadStr, @SysUtilsLoadStr);
HookFmtLoadStr:=THook.Create (@sysutils.FmtLoadStr, @SysUtilsFmtLoadStr);
HookIntoResourceStrings (AutoCreateHooks,false);
Peter