Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program or unit <name> recursively calls itself

Status
Not open for further replies.

TheBugSlayer

Programmer
Sep 22, 2002
887
US
Hello all.

From Tuesday I have been getting the fatal error described in the subject line. I don't know what is suddenly causing it. I am trying to install components, it happens at compilation, no matter which one. Can anyone assist me please?

Thanks a lot,
Your helpless Bug Slayer.
 
You probably have a unit that references itself in its uses list.

e.g. both examples below would produce the error you are getting.

Code:
unit UnitA;

interface
uses
   UnitA;

implementation


end.

or

Code:
unit UnitA;

interface
uses
   UnitA;

implementation


end.

to solve it you need to make sure no unit references itself.
 
on the second code window of my previous reply i meant the following.

Code:
unit UnitA;

interface


implementation
uses
   UnitA;

end.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top