Problem with ClientClassFactory in Linux

Hello.

I’m creating an instance of type clientfactory. In windows it works correctly, but in Linux (Tokyo) the instance is not destroyed … which causes my server to clash, due to lack of memory after a few hours of use

fROClassFactory := TROPerClientClassFactory.Create(‘DataServer’, Create_DataSnapModule, TAppServer_Invoker, 60 * 2);

where do you store the fROClassFactory, and is that container class destroyed ok?

DataSnapModule.

  • TdsMain = class(TRODataSnapModule, IAppServer2)

In windows a TdsMain is destroyed in the pre defined time (60 * 2) … in Linux no.

TROPerClientClassFactory has no special code for NEXTGEN compiler so it should work the same as for windows platform.
can you create a simple testcase and send it to support@, pls?

Ok, so if TdsMain is not destroyed, then it’s sort of expected that the stuff it holds on to does not get destroyed either. Are you using the standard VCL lifetime mechanisms for forms and data modules? If so, this sounds like a general Delphi/Linux issue, not specific to ROSDK…

I’m finishing the testcase to send you…

Sent…

Thanks, logged as bugs://78670

bugs://78670 got closed with status fixed.