#1 2014-11-22 16:38:53

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Request TAutoFree for Crossplatform

Hi AB it would be great to have AutoFree also for the Crossplatform Client smile


Rad Studio 12.1 Santorini

Offline

#2 2014-11-23 09:03:28

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

Re: Request TAutoFree for Crossplatform

But it won't work with FPC... due to a diverse implementation... sad
And is not needed for the NextGen compiler, due to the ARC memory model.

So only for Delphi under Windows?
In such platforms, you should better directly use the main mORMot units, so you have already the TAutoFree at hand!
smile

Offline

#3 2014-11-25 13:46:41

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: Request TAutoFree for Crossplatform

Hi AB, i had to think about it.

I use Crossplatform for actually the follwing cases:

FMX - iOS: This is NextGEN - i don't need to free my Objects ?!
FMX - Android: also NextGEN ?
FMX - Windows: here i need it or can use the Windows - Client (I don't like to use the Windows - Client cause i have to program 2 Versions for Server Access) Here i would like to use TAutoFree
FMX - MacOS: NextGEN ?

I like to code every Version in the same way. Actually i Create try ... finally free
So if i put everything i TAutoFree i can modify the Platform specific code there smile


Rad Studio 12.1 Santorini

Offline

#4 2014-11-25 14:32:40

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

Re: Request TAutoFree for Crossplatform

You are right.
TAutoFree does make sense for MacOSX and to share code among platforms.
For nextgen it should just do nothing.
Good ideas....

Offline

Board footer

Powered by FluxBB