Solved

How to fix Delphi error message program or unit recursively uses itself?

Posted on 2008-10-26
1
1,508 Views
Last Modified: 2013-11-23
I'm getting the following error message:
[Fatal Error] Program or unit 'ImageDisplay' recursively uses itself.

I tried to "Build" the project, but that did not work.

The program is an automation server with the following pas files:

ufrmImageDisplay.pas -- main form, see image in zip file
ufrmMagnify.pas --  this is a popup window on the main form, see "flying magnifier" on image in zip file.
ImageDisplayIntf.pas -- automation server module where methods can be called.
ImageDisplay_TLB.pas  -- defined methods for external programs to call.

The attached zip file contains the complete pas files, dpr and a screen shot of the program.
ImageDisplay.zip
0
Comment
Question by:IT79637
1 Comment
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 22808482
rename you dpr unit to something else

you are using a library ImageDisplay allready in ImageDisplay_TLB.pas

if you really want to name your exe file ImageDisplay.exe
you can do this afterwards.
 
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now