Solved

COM error

Posted on 2001-06-26
8
206 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

772 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