Solved

COM error

Posted on 2001-06-26
8
207 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
  • 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
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.

 

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

830 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