Solved

Delphi fatal error

Posted on 1998-12-20
10
452 Views
Last Modified: 2010-04-04
I recently bought a brand-new copy of Delphi 4.0 Standard Edition, and to get started I tried to compile one of the sample programs. However, there was a build error - "Unit Forms was compiled with a different version of Math.Max". To get around this problem, I have to build all my programs using run-time packages, but I want them to be linked at build-time into my executable so that I don't have to distribute any run-time DLLs or BPLs. What is causing this problem?
0
Comment
Question by:mmarvi
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1352307
You should download the patches from DSPand apply them - I don't sure if it will fix the problem though.

Cheers,

Raymond.
0
 

Author Comment

by:mmarvi
ID: 1352308
Where in the Delphi Super Pages can I find these patches?
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1352309
Try to delete all .DCUs in your program path, as well as forms.* if there are any.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:mmarvi
ID: 1352310
When you say "program path", do you mean the path where the output files are created by the compiler, or something else?
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1352311
Yes, or say the path where your projects' .pas file is located, depends on where Delphi put the generated DCUs.
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1352312
Any way, try to find forms.dcu at you own directories(not the Delphi's VCL source path). If you can find any, delete them.
0
 
LVL 2

Expert Comment

by:gallaghe
ID: 1352313
When deleting DCU files, make _sure_ that there are PAS files for them. If you didn't get the source code then there will be nothing to compile!!! Oooops, it is reinstall time...
0
 
LVL 1

Accepted Solution

by:
rpetruni earned 30 total points
ID: 1352314
Hi,
i think you could solve your problem yust by deleting all *.dcu, if this don't help try with *.res, and all others( except, of corse *.pas, and *.dfm  :-) )
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1352315
Next time I'll always post my comment as answer :(
0
 
LVL 1

Expert Comment

by:rpetruni
ID: 1352316
Hi , dwwang
:-) thats live...
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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