Solved

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

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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 synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

760 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

20 Experts available now in Live!

Get 1:1 Help Now