Solved

File not found: 'DockForm.dcu'

Posted on 2010-11-26
5
2,549 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
  • 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:ewangoya
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

21 Experts available now in Live!

Get 1:1 Help Now