Solved

Delphi fatal error

Posted on 1998-12-20
10
455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
QRReport  TQrmemo vertical stretching 1 56
RESTRequest Parameter 4 54
Get weeknumber and year from date 4 29
Firemonkey how to swip panel with finger tap 1 21
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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

733 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