Maddox
asked on
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?
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.
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.
DFM file is a text file. Open it, and look if it's enteries correspond to what you did with the form.
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
ASKER
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.
ASKER
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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