Solved

Can't open project

Posted on 1998-07-18
7
183 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

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

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…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
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.

747 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

12 Experts available now in Live!

Get 1:1 Help Now