Custom Delphi server with FastMM and TRO Http Api Simple Authentication Manager causes Access Violation on Exit

Hi,

I’ve added FastMM4 to a couple of my custom Delphi server apps. They’re both code-first & I’ve started adding HTTP API to them for web clients to use.

When I close them, they both generate the same error:

Imgur

Sort of looks like the authentication manager has been freed twice

RO/DA v10.0.0.1481
Delphi 10.3.2

Thanks in advance,

Stuart

Hi,

Can you create a simple testcase that reproduces this case, pls?

Attached.

Just run the server, then shut it down.

Server_15_07_2020 11_19_06.zip (232.3 KB)

Hi,

update uROHttpApiBaseAuthenticationManager.pas as

  TROHttpApiBaseAuthenticationManager = class(TComponent)
..
  public
     destructor Destroy; override;  //added
...

destructor TROHttpApiBaseAuthenticationManager.Destroy;
begin
  SessionManager := nil;
  inherited;
end;

Thanks, logged as bugs://84667

bugs://84667 got closed with status fixed.

Thanks - which packages do I need to recompile please?

(Delphi 10.3 aka product v26)

Hi,

just close Delphi IDE and launch install_da.cmd (or install_ro.cmd) with administrators rights from …\RemObjects Software\Build folder

1 Like

Thanks Evgeny.

Nice utility :smiley: