You are not logged in.
Pages: 1
I was looking around the mORMot2 mvc-blog example a bit and came across the use of TAutoFree. TAutoFree is nice to use. I remember (or I think I remember?) reading a warning that you should not use TAutoFree in current versions of Delphi (10.4+). Also not in conjunction with a variable IAutoFree. As a result, I rewrote an application to try ... finally. I'm a little confused. Have I misunderstood something?
With best regards
Thomas
Offline
You need to use it either with a local variable, or a "with" statement.
Otherwise, the IAutoFree is released immediately, so it won't work as expected.
Offline
You need to use it either with a local variable, or a "with" statement.
Otherwise, the IAutoFree is released immediately, so it won't work as expected.
Thanks for the clarification. Now I remember reading this blog post.
With best regards
Thomas
Offline
Pages: 1