Solved

"Cannot debug project unless a host..." what?

Posted on 2004-10-03
12
4,315 Views
Last Modified: 2012-06-21
Hi All,
I sometimes (after installing components) get this error:

"Cannot debug project unless a host application is defined. Use the Run|Parameters dialog box..."

I am very sick of having to reinstall every time I get this, any ideas?
0
Comment
Question by:maxb
[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
  • 3
  • 2
  • 2
  • +3
12 Comments
 
LVL 7

Expert Comment

by:LRHGuy
ID: 12211494
Most likely it's because the component project is still loaded. Close the package project, then reopen the application project is necessary.
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 12212739
May be you have opened with IDE not a project, but a Component's code and try to run it ? You need to close the Component's code and open a Project, then you could compile, build and run it ....
0
 
LVL 13

Expert Comment

by:BlackTigerX
ID: 12214699
seems like you are trying to debug a DLL... that's the only case where I have seen that error, and the solution is just as the message suggests... to add the Run|Parameters to specify the host application
0
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!

 

Author Comment

by:maxb
ID: 12214740
No actually, if I have a project open and I'm trying to add additional components (recompile the package) I get the error... no clue still
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 12214812
May be you forgot to add the path of the installed new Components into:
 -  DELPHI IDE Menu "Tools"
    - Menu Item "Environment Options"
      - Tab "Library"
         - "Library Path" Button with caption "..."
           - Write Into the Edit Component the full path to  the installed new Components
             - Press the Button "Add", the "Ok" and "Ok".
So the compiler to find the source code of the Components ....
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12214882
if you are going to recompile a pakage, first close all opened projects, make sure you have only one Delphi instance running and then try to recompile it...
0
 

Author Comment

by:maxb
ID: 12228824
It turns out that the project files got replaced by the component library and just caused a confusion. I basically had to re-add the project's units back into the project and now everything works ok.

Thanks for all the suggestions.
0
 
LVL 7

Expert Comment

by:LRHGuy
ID: 12238836
I don't know. It seems as though the author's question was answered by me and two other experts. Even the author's final comment seems to confirm that the component library project was open and not the application project. The other experts may have a mored learned opinion.
0
 

Author Comment

by:maxb
ID: 12239069
What actually happened was the component library objects were somehow merged into the application project replacing several actual project files.
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 12278317
Question answered by asker or dialog valuable.
Closed, 50 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

724 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