Solved

Can't open project

Posted on 1998-07-18
7
188 Views
Last Modified: 2010-04-04
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
Comment
Question by:Maddox
7 Comments
 

Expert Comment

by:bome
ID: 1358168
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
 

Expert Comment

by:tktk
ID: 1358169
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
 
LVL 3

Expert Comment

by:Matvey
ID: 1358170
DFM file is a text file. Open it, and look if it's enteries correspond to what you did with the form.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 6

Expert Comment

by:Holger101497
ID: 1358171
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
 

Author Comment

by:Maddox
ID: 1358172
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
 

Author Comment

by:Maddox
ID: 1358173
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
 
LVL 4

Accepted Solution

by:
Mark Aerts earned 100 total points
ID: 1358174
I'm sorry, I know it's bad news for you, but you just have to reprogram it!!!

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

828 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