Delphi compiler: how to find used units

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
formiAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
MichaelStaszewskiConnect With a Mentor Commented:
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
 
formiAuthor Commented:
Great! Renaming the unit showed me the unit! Thanks for this idea - simple but clever!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.