Solved

File not found: 'DockForm.dcu'

Posted on 2010-11-26
5
2,709 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 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