I am trying to compile some code using BDS2006 and have received the following err:
[Pascal Fatal Error] Variants.pas (1035): F2092 program or unit 'Variant' recursively uses itself.
The code is highlighted by the debugger at the end of line 1035 which is the final end; statement for the Procedure VarCopyByRef. This error occurs in several programs that use the variants file. The variants.pas file uses Types and Sysutil, neither of which uses files that lead to a vrecursion of the Uses declarations recursing the Variants.pas file.
My interpretation of the error is that there is a reference between units that leads back to this file (I do ot see how it could occur) or something in the Procedure VarCopyByRef. This code is part of Delphi and has not been altered.
Can anyone shed some light on this? Is there a means of tracing this recursion in the debugger?