Theo69
(Theo)
May 29, 2019, 5:40pm
1
When I enable obfuscation and I have a button with a local resource (image on the button), I get:
To reproduce:
Create new Winform project
Add a button to the form, and add a Local resource to the image property
Add the line [assembly: Obfuscate(PublicTypes := true)] to assemblyinfo.pas
Start the project
Theo69
(Theo)
May 29, 2019, 5:47pm
2
Addition info: It also happens without PublicTypes:=true
Thanks, logged as bugs://82693
Theo69
(Theo)
July 8, 2019, 1:09pm
4
Just making sure this one is not forgotten …
mh
(marc hoffman)
July 8, 2019, 1:18pm
5
IIrc the conclusion was that this is not fixable, you’ll have to exclude the types from obfuscation, if their names need top match up with resources. @ck ?
ck
(Carlo Kok)
July 8, 2019, 1:20pm
6
Yes. Perhaps we should automatically exclude this namespace.
mh
(marc hoffman)
July 8, 2019, 1:21pm
7
Alternatively, could the compiler detect resource names matching obfuscated type names, and mangle the resource names too?
1 Like
bugs://82693 got closed with status fixed.
Theo69
(Theo)
July 10, 2019, 12:01pm
9
@mh
Can I get a build with this fix in it?
I have to release a version with this problem today.
ck
(Carlo Kok)
July 10, 2019, 12:19pm
10
your info@ account should have it.
1 Like