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

jaclas
Member
Registered: 2014-09-12
Posts: 215

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.

Offline

#2 2021-01-28 10:27:10

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: TSynMapFile incorrectly decodes module paths

Offline

Board footer

Powered by FluxBB