質問

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.
役に立ちましたか?

解決

The code in the question has a circular reference. That is, a dependency chain that leads from one unit, back to that same unit. It does not matter how long the chain is. In this case its length is three, but it could be any length.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top