I.T. Discussion Community!
-Collapse +Expand
Prism
Search Prism Group:

Advanced
-Collapse +Expand Prism To/From
To/FromCODEGuides
-Collapse +Expand Prism Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Prism Store
PRESTWOODSTORE

Prestwood eMagazine

August Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingDelphi PrismDelphi for ....   Print This     
 
Prism Delphi for .Net Archive:
Fix For .NET Framework 1.1 Service Pack 1 Delphi 8 Problem
 
Posted 15 years ago on 10/2/2004 and updated 12/14/2008
Take Away: Delphi 8 fix for Required package Borland$ not found caused by the .Net Framework service pack 1 update.

KB100270

Microsoft's recently released service pack 1 for the .Net framework 1.1 breaks Delphi 8 as soon as you compile a project. The problem appears to be that Microsoft added symbols to the framework that Delphi 8 cannot currently handle. Delphi 8 must gather the needed symbols directly from the .Net framework. According to my contacts at Borland, Microsoft is well within their right to add symbols and Borland must come up with a solution compatible with their desire to add symbols. A quick solution for Borland is to add those symbols to a patch for Delphi 8. However, the next time Microsoft adds symbols, boom, everybody is dead in the water waiting for Borland to catch up, again. At this point, probably what's going on is that Borland is enhancing the gathering of the symbols process and making it a more dynamic process. Perhaps they are even asking Microsoft to surface an RTTI or Reflection type API for Borland. Or, perhaps, that functionality is already there and they just need to make use of it. Until then, we Delphi 8 developers have to figure out a solution to keep coding today.

In the original shipping version of Delphi 8, you have this problem if you get the following error:

Required package Borland$ not found

or

[Fatal Error] Project2.dpr(1): Unit Borland.Delphi.System was compiled with a different version of .Borland$.Word

I performed the following procedure to get back up and running with both WinForms and VCL.Net projects. It is a compilation of information from various sources already on the Internet.

  1. Make sure Delphi 8 is not running (exit Delphi 8).
  2. Uninstall framework 1.1. This uninstalls framework 1.1 and it's already applied service pack 1.
  3. Reinstall framework 1.1. But do NOT install the .Net framework 1.1 service pack 1.
  4. [Optional] Go to Microsoft Updates and hide the service pack 1 update so that you don't accidentally apply the update.
  5. Next you need to delete "some" of the *.dc* files on your system. Some of these files were installed with Delphi and updated when you compiled and some were put on your system when you created a new project. Open a command prompt by selecting Start | Run | type Cmd, then okay (or just press WinKey + R + cmd + Return). Then, change Directory to the Borland Installation Folder (default is c:\Program Files\Borland\BDS\2.0).
  6. Change Directory to the lib folder (cd lib) and delete the *.dc* files (del *.dc*).
  7. Change Directory to the debug subfolder (cd debug) and delete the *.dc* files (del *.dc*).
  8. Go back to the Borland Installation Folder (use cd.. then cd..).
  9. Change Directory to the source folder (cd source) and recreate the assemblies (make default debug). The "make" command along the passed in parameter "default debug" recreates the necessary assemblies.
  10. This step is NOT optional even if you do a reinstall! Delete all of the *.dc* files in ALL of your project folders, including those quick demo project folders, with del *.dc*.
  11. At this point your WinForms Delphi 8 projects should work fine but your VCL.Net projects are probably still broke and you may even be getting an "Internal error: U1810" error. If so, you need to delete the *.dcpil files in your VCL.Net project folders.

    Note: You probably need to "safe" new VCL.Net projects prior to building them.

Good luck!


Comments

0 Comments.
Share a thought or comment...
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1236A1
Enter key:
KB Post Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #100270 Counter
12489
Since 4/2/2008
Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech