Atozed Forums
weakpackageunit contains global data - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: weakpackageunit contains global data (/thread-6163.html)



weakpackageunit contains global data - tobenschain - 05-25-2026

I am unable to compile my IntraWeb app. I get $weakpackageunit windows contains global data


RE: weakpackageunit contains global data - rlebeau - 05-25-2026

(05-25-2026, 10:39 AM)tobenschain Wrote: I am unable to compile my IntraWeb app. I get $weakpackageunit windows contains global data

Which unit/package, exactly, is reporting the error? What is the complete error message, verbatim?

Is this a problem with Indy or IntraWeb? I see you posted this error in the Indy forum on Delphi-Praxis, but you didn't post it in the Indy forum on this server.


RE: weakpackageunit contains global data - tobenschain - 05-26-2026

(05-25-2026, 11:40 PM)rlebeau Wrote: Which unit/package, exactly, is reporting the error? What is the complete error message, verbatim?

[dcc32 Error] Winapi.Windows.pas(44173): E2203 $WEAKPACKAGEUNIT 'Winapi.Windows' contains global data


RE: weakpackageunit contains global data - rlebeau - 05-26-2026

(05-26-2026, 11:44 AM)tobenschain Wrote: [dcc32 Error] Winapi.Windows.pas(44173): E2203 $WEAKPACKAGEUNIT 'Winapi.Windows' contains global data

So, not even a problem with Indy or IntraWeb, but with the RTL. Then it needs to be reported to Embarcadero.

Are you able to reproduce this in a new simple project that can then be given to them to investigate?


RE: weakpackageunit contains global data - rlebeau - 05-26-2026

@tobenschain
I have opened a ticket for it:

RSS-5450: E2203 $WEAKPACKAGEUNIT 'Winapi.Windows' contains global data

You should add a test project to it that reproduces the error.