Solved

COM error

Posted on 2001-06-26
8
208 Views
Last Modified: 2010-04-06
Hi, we built a delphi COM components and I got this error on runtime:
"cannot debug project unless a host application is defined. Use the Run|Parameters..dialog box"

Thanks
0
Comment
Question by:mohbb22
[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
  • 5
  • 3
8 Comments
 
LVL 13

Expert Comment

by:Epsylon
ID: 6227408
This is normal. You just can't run a COM object/dll.
0
 

Author Comment

by:mohbb22
ID: 6227528
can the error be because I checked the Include Type Library Box when creating the COM object?
0
 
LVL 13

Accepted Solution

by:
Epsylon earned 100 total points
ID: 6227560
No. Check your project directory. You will probably find a DLL there. This DLL is the result of the compilation of your project.

When you compile (F9) a 'normal' application, an EXE is created. When done Delphi automatically runs the EXE. This works fine. But when you compile (F9) a DLL, Delphi tries to run the DLL. That results in the "cannot debug project unless a host application is defined. Use the Run|Parameters..dialog box" message.
0
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!

 

Author Comment

by:mohbb22
ID: 6227663
I think you didn't understand me well...I built a COM Object and I used in in another application. (ie. I didn't compile the DLL itself). During compilation this application works fine but I RUn it I ge the error.

0
 

Author Comment

by:mohbb22
ID: 6227670
I think you didn't understand me well...I built a COM Object and I used in in another application. (ie. I didn't compile the DLL itself). During compilation this application works fine but I RUn it I ge the error.

0
 

Author Comment

by:mohbb22
ID: 6227677
I think you didn't understand me well...I built a COM Object and I used in in another application. (ie. I didn't compile the DLL itself). During compilation this application works fine but I RUn it I ge the error.

0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6227831
That message means that Delphi can't run the compiled application. Nothing more.

So what kind of project is it?
0
 

Author Comment

by:mohbb22
ID: 6231064
It's a COM project..we are trying to build a COM Component .
Right now we are facing another error of:
Project RSATesting.exe raised exception class EAccessViolation with message 'Access Violation at address 00447847' in module 'RSATesting.exe' . Write of address '0000000' . Process stoped. Use Step or Run to continue.

note: TRSATesting is the application using the COM we built.(the COM is an RSA algorithm program)
Note: also that we are not using any pointers.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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