Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Project File Corrupt, Memofile invalid or missing?

Status
Not open for further replies.

professionals

Programmer
Jun 24, 2000
13
AE
How I can fix the problem of project file where accidentally off the computer or by cause of power failure.

The next I opened the project is says project file is invalid. Does anyone knows how to fix it without rebuilding the whole project.?


Moises
 
Nope. You'll need to create a new p[roject add in your main program, rebuild the project to pull in most if not all other files...check to make sure all necessary files have been added, if not add in files that are still missing...rebuild your app/exe

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Of course the best way to handle this is with good backups, but for a variant, check out the two utilities I wrote to save and recreate projects at These were developed to show how the "new" Project object in VFP 6.0 works to our local user group. (These are also great for moving a project, since everything is saved off in ASCII text files that are easily manipulated.)

Rick
 
The project usually does a pretty good job of building itself. Open a new projects. Add the Startup.prg. Rebuild all.

Please note, that if you call programs using a parameter, these programs will not be added. They way I handle that is, if I have any, I include a dummy area at the bottom of the startup.prg that has then listed. For example:

FUNCTION dummyArea
RETURN .T.

DO pgm1
DO pgm2
DO pgm3

pgm (1 - 3) would be the names of the programs that can be called. This way, they will still be added to the project in the event you need to rebuild it, but this code will never be executed because you never call it and if you did it would hit the RETURN statement right away.



Jim Osieczonek
Delta Business Group, LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top