Jump to content
Chau Chee Yang

RAD Studio 12.3: E2213 Bad packaged unit format

Recommended Posts

I encounter an issue with RAD Studio 12.3. Here are my steps:

 

  1. Create a sample VCL application
  2. Setup project to build with runtime package: vcl
  3. Build project with debug build and it works
  4. Switch build to release and build again, and it prompt
[dcc32 Fatal Error] Sample.dpr(5): E2213 Bad packaged unit format: t:\23.0\lib\Win32\release\vcl.dcp.Vcl.Forms - Expected version: 36.0, Windows Unicode(x86) Found version: 156.0, Windows Unicode(x86)

This happen to both 32 and 64 bits of Delphi IDE.

 

Share this post


Link to post
17 hours ago, Lars Fosdal said:

Isn't that the type of error you get when you try to link a .dcu that is for the wrong platform?

Yes.  The platform is valid and correct.  If I restart the IDE and switch to release immediately, it can build without issue.

 

In same IDE session, a debug build followed by release build will show the error.  Reverse the step by release build followed by debug build will show error too.  This happens to .exe application type.  For package (.bpl) it doesn't shows error.

 

 

Share this post


Link to post

Looks to me like some caching problem in the IDE. As you seem to have reproducible steps, you should file a bug report.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×