0

So, people. I have a aparently simple question. Does Delphi consider the next example as a Circular reference? I'm reaching Out of Memory Error with a similar set of code.

unit CodeA;

interface

uses CodeB;

implementation

end.

-

unit CodeB;

interface

uses CodeC;

implementation

end.

-

unit CodeC;

interface

uses CodeA;

implementation

end.
4

1 回答 1

2

问题中的代码具有循环引用。也就是说,从一个单元到同一个单元的依赖链。链条有多长并不重要。在这种情况下,它的长度是三,但它可以是任何长度。

于 2013-12-26T19:48:32.300 回答