?
Solved

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

Posted on 2004-10-03
12
Medium Priority
?
4,433 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

765 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