Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Can't open project

When I tried to reopen (it worked before) the project I was working on, Delphi just stopped, all I got was an empty edit screen. The problem seems to be that I can't open the (it's a small project) *.pas file when the *.dfm file is also in the directory. (opening the pas file will only work when it's in another directory). What could the problem with opening the *.dfm file be?
0
Maddox
Asked:
Maddox
1 Solution
 
bomeCommented:
Well, when delphi is opening a pas and there is also a dfm of the same name, delphi tries to open the corresponding form as well. When there is an error in the form, it may occur your error.

You can always check with the project manager and open the pas/form file from there.

Errors may be:
res file is missing for the form
form contains components that aren't installed
.
just some thoughts
bome
0
 
tktkCommented:
Open the *.pas file in a simple editor.
After the word  "uses" there is a line or maybe more
Put a \\ in the start of this lines
or put them all in a   {   } .
And then try to open this file from Delphi and check the problem.

I hope it's will work.
0
 
MatveyCommented:
DFM file is a text file. Open it, and look if it's enteries correspond to what you did with the form.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
Holger101497Commented:
Could you post the *.dfm? Then we could take a look at it, unless you use some "extra-components"... might be worth a try though
0
 
MaddoxAuthor Commented:
I Opened the dfm file, and started deleting some components. I found out that the problem is the DataField property of a TDBMemo component, which is placed in a panel. Strangely everything seems to work fine when I just delete the panel (the components on the panel are placed directly on the form). So either removing the DataField property or the Panel lets me open the project just fine.
0
 
MaddoxAuthor Commented:
The Error keeps coming back. When I try to set the DataField property to the Field, Delphi locks immediatly. Seems like a bug. Could there be any other explanation?
0
 
Mark AertsCommented:
I'm sorry, I know it's bad news for you, but you just have to reprogram it!!!

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now