I just noticed this:
function DataTransfer(...parameters...) : boolean;
var
LTestQuery, LUpdateQuery: TFDQuery;
begin
Right at the start of the procedure:
In 32-bit (Delphi Alexandria 11.1) local variables `` etc. are nil
In 64-bit (Delphi Alexandria 11.3**) they are not. Assigned()
returns true, var = nil
returns false, the object inspector says 'Inaccessible value'.
Is that really a change when moving from 32 to 64 bit?
That would be a real PITA, because I see many routines in our 10+ MLOC relying on local objects being initialized to nil.
I bumped into this when one routine gave an AV on FreeAndNil(LTestQuery)
with LTestQuery
being one of those uninitialized TFDQuery
s.
** Currently compiling with debug dcus because I'm tracing these kinds of issues
FreeAndNil
doesn't do this with itsconst ref
approach.