문제

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