AV occurs on DLLServer destroy when TRODataSnapConnection used in Client in Delphi

Hi,

AV occurs on your standard created project also. The problem is, you are calling RebuildServices on uROServer.pas, on destroy also. It uses g_classFactoryList.GetRegisteredZeroConfNames, but g_classFactoryList is freed before.

This problem started after 10.0.0.1541. I use 10.0.0.1541, but I cant use newer versions.

Delphi Ver: D11.2 Alexandria
RemObjects Ver: 10.0.0.1553
TestRODLLServerD28.rar (4.6 MB)

Best regards,

1 Like

Hi,

pls update uROServer.pas as

procedure TROServer.SetActive(const Value: Boolean);
...
    IntSetActive(Value);
    // <<< old location of `RebuildServices;`
    if (Value = Active) then begin
      case Value of
        True: begin
          RebuildServices; //<<<< moved

after this, close Delphi IDE and launch C:\Program Files (x86)\RemObjects Software\Build\install_DA.cmd (or install_RO.cmd) with admin rights.

Logged as bugs://D19299.

bugs://D19299 was closed as fixed.

Thank you.

Best regards,
Serkan Ahtagil