Posted on 2000-01-07
Medium Priority
Last Modified: 2010-04-06
I encountered error message below when i trying to press the F9 and run the program.

[Fatal Error]SReport.dpr(60): Unit dxBarCustForm was compiled with a different version of ComCtrls.TOwnerDrawState

I have read the Help File but don't understand what causing this error.

My scenario is when i copy my source from one pc to another pc. Source PC is running delphi4 professional edition, and target pc is running delphi4 Enterprise edition client-server suite. Does this cause problem? What should i do ? How to solve this error?

Please Help!


Question by:softyan
LVL 20

Expert Comment

ID: 2334261
Hmmm... Have you tried rebuilding the whole project? (Alt-p-p, if I remember right).
What is this dxBarCustForm? Is this a 3rd party component? Do you have a pas file for that? Or only a dcu?
Perhaps you have installed different service packs on both Delphi installations?

Regards, Madshi.

Expert Comment

ID: 2334286
straight from the help file:


This error occurs when the declaration of symbol declared in the interface part of a unit has changed, and the compiler cannot recompile a unit that relies on this declaration because the source is not available to it.  There are several possible solutions - recompile Unit1 (assuming you have the source code available), use an older version of Unit2 or change Unit2, or get a new version of Unit1 from whoever has the source code to it.

Accepted Solution

kifah earned 200 total points
ID: 2334567
standard, professional or enterprise they have difirent version number thus, any .pas file compiled under one of them, it need to recompile again. if you have the source of the VCL, then you can recompil it under the other (remember to delete the DCU, because delphi if found the dcu, will not recompile unless you ask to build all the projects).

Expert Comment

ID: 2334743
First delete all your DCUs as
kifah already said. If this dont helps, set the delphi vcl source paths (delphi/source/vcl...) in environement, options and 'build all'. perhaps delphi has to rebuild one of its own DCUs.

Author Comment

ID: 2340045
Though your answer may not suite me, but it sounds ok!

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…

600 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