[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2004-10-03
12
Medium Priority
?
4,614 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
  • 3
  • 2
  • 2
  • +3
10 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

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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 Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month19 days, 7 hours left to enroll

872 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