Solved

Delphi compiler: how to find used units

Posted on 2012-03-23
2
524 Views
Last Modified: 2012-03-23
I have a strange problem: I generate a new DXE2-Project and add a single unit to it, which I used in another project. Compiling the project opens another unit with an error. My problem: I can not find out whit this second unit is compiled. I can not find it in any uses-section. Is there a way that shows me the tree with the units (sorted by the way the compiler compiles them)? So I could find that unit in the right uses-section.

Thanks, Peter
0
Comment
Question by:formi
[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
2 Comments
 
LVL 4

Accepted Solution

by:
MichaelStaszewski earned 500 total points
ID: 37759434
Check your project source... Project menu|View Source. Is it listed there? You can also rename the mystery unit file and build. It should break on any place referencing it.
0
 

Author Closing Comment

by:formi
ID: 37759446
Great! Renaming the unit showed me the unit! Thanks for this idea - simple but clever!
0

Featured Post

Technology Partners: 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

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