#1 2020-07-16 15:07:29

Registered: 2014-09-12
Posts: 212

TSynMapFile incorrectly decodes module paths

I use simply code to decode memory address to method name:

    s := TSynMapFile.FromCurrentExecutable.FindLocation(lMethodPtr);

Decoding works a little bit wrong, the given example returns this result:

Client.AccountsManager.Impl.AccountsManager.Impl.TAccountsManagerClient.GetAnyAccountLicenses (218)

while correctly it should be so:

Client.AccountsManager.Impl.TAccountsManagerClient.GetAnyAccountLicenses (218)

the underlined fragment of text is inserted twice, because unit is: Client.AccountsManager.Impl.pas and class name is TAccountsManagerClient

I use Delphi 10.3 and latest mORMot sources.


Board footer

Powered by FluxBB