Solved

COM error

Posted on 2001-06-26
8
204 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
 

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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now