Solved

COM error

Posted on 2001-06-26
8
205 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 213
Newbie Thread Programming 1 139
drawing animated level bar based on numbers 3 88
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 57
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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

862 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

23 Experts available now in Live!

Get 1:1 Help Now