Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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