Solved

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

Posted on 2008-10-26
1
1,594 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

730 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