1. JOSE WILLIAM ROMERO OLIVOS
  2. PowerBuilder
  3. Tuesday, 12 September 2023 13:22 PM UTC
Good morning everyone. When deploying my project under version 11 of PowerBuilber, the size of the executable was 1 MB, maximum 1.5 MB. We have migrated to version 2022 r2 of powerbuilder and now the size is 45 MB.

What is the reason for the increase in size of the executable?

Is there something we are doing wrong or something new?

Thank you so much
 
JOSE WILLIAM ROMERO OLIVOS Accepted Answer Pending Moderation
  1. Wednesday, 13 September 2023 20:30 PM UTC
  2. PowerBuilder
  3. # 1

Problem solved.

I was placing the PBR in the option where the exe is generated

It had to be placed in a preferably empty PBL.

The .exe went from 43 mb to only 178 kb


Thank you all

and Thank's Chris Pollach @Appeon 

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 13 September 2023 21:03 PM UTC
You are most welcome Jose - that is great news! ;-)
  1. Helpful
There are no comments made yet.
JOSE WILLIAM ROMERO OLIVOS Accepted Answer Pending Moderation
  1. Wednesday, 13 September 2023 20:29 PM UTC
  2. PowerBuilder
  3. # 2

Problem solved.

I was placing the PBR in the option where the exe is generated

It had to be placed in a preferably empty PBL.

The .exe went from 43 mb to only 178 kb


Thank you all

 

 

and Thank's Chris Pollach from @Appeon 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 18:52 PM UTC
  2. PowerBuilder
  3. # 3

Hi Jose;

  I checked my STD Framework OrdereEntry Demo App machine compiles

PB 11/12 was a 53K EXE M-Code compile

PB 2017/2019 was a 55K EXE M-Code compile

PB 2021 a 57K EXE M-Code compile

PB 2022R2 is a 61K EXE M-Code compile

  So what you are seeing does not makes sense. I would review your App M_code Project in PB 11 & 2022 and very carefully review them for any differences. HTH

Regards ... Chris

Comment
  1. Rengaraj Arumugam
  2. Tuesday, 1 October 2024 07:21 AM UTC
Good Day!!



Even today me too facing same problems, Migrated from PB11 to PB2022, PB exe size got increased and application is more slow compare to PB 11. Do you have any suggestion ?



Thanks,

Renga
  1. Helpful
There are no comments made yet.
JOSE WILLIAM ROMERO OLIVOS Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 14:55 PM UTC
  2. PowerBuilder
  3. # 4
Attached are the exes. One compiled with PB 11. And the other with PB 2022 R2.

The dlls and everything are exactly the same. Nothing has been modified.


What we do not understand is why the size of the .exe increased

If anyone knows any options that we have wrong... we would appreciate it.
Attachments (1)
Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 12 September 2023 16:18 PM UTC
Please open a support ticket and provide your test case so our team can analyze. https://www.appeon.com/standardsupport/newbug
  1. Helpful
  1. Roland Smith
  2. Wednesday, 13 September 2023 13:15 PM UTC
One or more of the libraries in PB 2022 must be set to not create a DLL which would cause its code to be added to the EXE. That or you have a PBR set to include images in the EXE that you didn't have in PB 11. Those are the only reasons an EXE would be extra large.

I have an app in PB 2022 that I created with all libraries generating PBD. The EXE is only 195 KB.
  1. Helpful 1
  1. Roland Smith
  2. Wednesday, 13 September 2023 13:18 PM UTC
In PB 2022, do a Full Rebuild and then Optimize every library in the target. Then rebuild the EXE/DLL files. Are you using the Project Painter to deploy the executables or a batch tool?
  1. Helpful 1
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 14:34 PM UTC
  2. PowerBuilder
  3. # 5

I am not aware of any bugs or behavior changes between PB 11 and PB 2022 R2 that would cause the EXE to bloat 45X. With that said, 1MB sounds way too small for an app. Are you sure you with PB 11 you were not having the PBLs compiled to DLLs or PBDs?  

Comment
  1. JOSE WILLIAM ROMERO OLIVOS
  2. Tuesday, 12 September 2023 14:57 PM UTC
It is possible to .exe smaller than 1mb in size. I even have a product that has been in service for years. quite big and its exe size is only 200k
  1. Helpful
There are no comments made yet.
JOSE WILLIAM ROMERO OLIVOS Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 13:47 PM UTC
  2. PowerBuilder
  3. # 6
Well, I have never generated PBD files. I have always generated .exe and DLLS. And for a long time, years, version 11 of powerbuilder did not increase the size of the exe. But in the 2022 version it increased exponentially.


What dou you recommend?

Thank you
Comment
  1. Roland Smith
  2. Tuesday, 12 September 2023 18:05 PM UTC
I see, a machine code build.
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 13:29 PM UTC
  2. PowerBuilder
  3. # 7

Is the 2022 one not generating PBD files? That would cause all the code objects to be embedded into the EXE.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.