Solved

"Error 72 : Unit File Format Error "-->> HELP !!

Posted on 1997-10-20
5
259 Views
Last Modified: 2010-05-18
Hi....

I have been working on a project using Delphi 1.0
Recently worked on it using Delphi 2.0 and it worked fine.
Now when I try to run it using Delphi 1.0 I am getting an error :

"Error 72 : Unit file Format Error "

What Can I do to solve this problem ??
Is my project totally ruined ??
Please help....

CYA
sprawler
0
Comment
Question by:sprawler
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
Pegasus100397 earned 50 total points
ID: 1348398
Sprawler,

Sorry to hear about your unit file problems. Delphi 2.0 probably added something to the unit file something that Delphi 1.0 does not support (hence an error in the unit file). My advice would be to print the unit out and print out a similiar one from Delphi 1.0 and remove references in the USES clause one at a time until the problem goes away. You can also load up the unit in something like NotePad, remove any strange/wierd characters, save it under a different name and see if that fixes the problem.

Good luck with your project
Pegasus
0
 

Author Comment

by:sprawler
ID: 1348399
Hi .....

Thanks alot for the help ....

sprawler
0
 

Author Comment

by:sprawler
ID: 1348400
Hi .....

Thanks alot for the help ....
If I had to load the file into Delphi 1.0 and then save it again, would that make any difference ?

sprawler
0
 
LVL 3

Expert Comment

by:Pegasus100397
ID: 1348401
Glad to help Sprawler.

If you cleaned up the file with notepad or removed any unusual references then you should still be able to use it in Delphi 1.0. In general though, be careful about using/compiling project in more than one version. I have 2.0 and 3.0 and have had a similiar problems if I SAVE a 2.0 project in 3.0, then it becomes a 3.0 project/unit and I might have problems trying to get it back to 2.0.

C Ya and good luck! :)
Pegasus

P.S. Stick with Delphi 2.0 if you have that option, much better! :)
0
 

Author Comment

by:sprawler
ID: 1348402
hi ...

Tanx ........  I decided to do just that - Use 2.0


Live long & prosper
sprawler
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

16 Experts available now in Live!

Get 1:1 Help Now