Solved

File not found: 'DockForm.dcu'

Posted on 2010-11-26
5
2,732 Views
Last Modified: 2012-05-10
Delphi 2010

I am writing a component that requires the use of both the units

DesignIntf, DesignEditors

When i build my package, i get the error

File not found: 'DockForm.dcu'

When I add "designide.dcp" to the "requires" section of the package, it builds and compiles just fine.

HOWEVER, when i add the component to a new project (in design time, it works. I can change all the properties, etc......BUT, it does NOT work in runtime.

When i run the application with the component on the main form, i once again get the "
"File not found: 'DockForm.dcu'" error

Delphi 2010

please help

thanks
0
Comment
Question by:Looking_4_Answers
[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
  • 3
5 Comments
 
LVL 14

Expert Comment

by:systan
ID: 34219242
For me?
First thing to do is to look for DockForm.dcu, put it in the folder where your project files are located.
Second, if DockForm.dcu, does not really exists, or not found, I'll go to project options, packages, then removed the packages that calls DockForm.dcu.
0
 
LVL 32

Expert Comment

by:Ephraim Wangoya
ID: 34219288

Go to Tools->Environment options

Make sure to include the path of DockForm.dcu in the Library path or DockForm.Pas in the Browse Path
0
 

Author Comment

by:Looking_4_Answers
ID: 34219933
systan:

Of couse, it exists. Its part of the Delphi 2010 Runtime packaging. You get the DCU, but not the Pascal file, just like Proxies.dcu.

I can't remove the packages that call DockForm...because it is a Unit that calls it ToolsApi.pas, which is needed in my component for doing custom property editors.

@ewangoya:  i assume you mean the component package and not the application the component resides on. The path is in the component package.

this is not a project, this is a component. I can't make my users path the component to whereever DockForm.pas resides.


Neither of these answers is what i am looking for.

I believe what i am looking for is the fact that Dockform.dcu is not allowed for runtime, but for designtime only. Therefore i need to add the code somewhere in my component that checks that the component is being used in designtime only, and not runtime.

The property editors are not used at runtime, only design time
0
 

Accepted Solution

by:
Looking_4_Answers earned 0 total points
ID: 34219997
It  looks like you need to segregate the design-time code from runtime code

http://edn.embarcadero.com/article/27717

0
 

Author Closing Comment

by:Looking_4_Answers
ID: 34246467
It  looks like you need to segregate the design-time code from runtime code

http://edn.embarcadero.com/article/27717
0

Featured Post

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!

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

690 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