?
Solved

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

Posted on 2008-10-26
1
Medium Priority
?
1,670 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 2000 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

Industry Leaders: 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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
Suggested Courses
Course of the Month13 days, 1 hour left to enroll

777 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