1. Olan Knight
  2. PowerBuilder
  3. Monday, 19 July 2021 20:50 PM UTC

PB2019R3, b2703
Windows 10, 64 bit platform


In PBv12.1, if you UN-check the PBLs on the Libraries tabpage of the Project file, all the code compiles into a single EXE.

This is not working in PB2019R3 b2703.
Can it be made to work? I.e. am I doing something wrong?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This works in PBv12.1 b7055




Thank You,

Olan

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 20 July 2021 14:42 PM UTC
  2. PowerBuilder
  3. # 1

Hi Olan,

Running the same version as you are. No problem at all, the EXE is generated without any PBD or DLL files.

Did you save the project before doing the deploy?

regards

Comment
  1. Olan Knight
  2. Wednesday, 21 July 2021 17:34 PM UTC
I did a FULL BUILD before doing the DEPLOY.

The end result is a 32K executable, when the size should be closer to 16K.
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 21 July 2021 21:33 PM UTC
Hi Olan, with "Deploy" I mean, right mouse click on the target and choosing "Deploy". Beware that if you have more than one project, it might use any project you don't want. In that case you'll just have to open up the project and click on the icon to deploy.

Why is it bad that the executable is bigger when you don't generate PBDs? You said it yourself: " if you UN-check the PBLs on the Libraries tabpage of the Project file, all the code compiles into a single EXE."

This logically means that the exe will be bigger if you don't generate pbd files.

Maybe I'm not understanding what's going on.

regards
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 22 July 2021 12:37 PM UTC
Hmm I think you have a typo when you say 32K vs. 16K? Did you mean 16,000 K?

If the executable doesn't work, but does compile without warnings, most likely you are missing some dynamically assigned datastores or datawindows and/or dynamically created / opened user object usertabs. search on "Create using some_string_variable" and OpenTab() and openuserobject() and opentabwithparm and openuserobjectwithparm.
  1. Helpful
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Tuesday, 20 July 2021 05:30 AM UTC
  2. PowerBuilder
  3. # 2

Exe with no runtime requirement will still be a better one....   Like the one that we get from VB.

 

Comment
  1. Miguel Leeuwe
  2. Wednesday, 21 July 2021 21:35 PM UTC
Ha, I get it Sivaprakash. VB 6 didn't need the .net framework.
  1. Helpful
  1. Sivaprakash BKR
  2. Thursday, 22 July 2021 05:54 AM UTC
Olan,

To run the exe created with Powerbuilder, without Powerbuilder runtime files (as we get exe in VB 6 that could be run without any VB runtime(s). )
  1. Helpful
  1. Roland Smith
  2. Thursday, 22 July 2021 12:44 PM UTC
VB6 has a runtime DLL.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 19 July 2021 21:31 PM UTC
  2. PowerBuilder
  3. # 3

Hi Olan;

   Can you be more detailed about "not working"?

Regards ... Chris

Comment
  1. Kevin Ridley
  2. Tuesday, 20 July 2021 14:20 PM UTC
If that's the case he should be able to put them in the PBR file.
  1. Helpful
  1. Sivaprakash BKR
  2. Wednesday, 21 July 2021 05:17 AM UTC
Kevin,

Yes there is a PBR file, hope Olan would have included the required dw names' in it.
  1. Helpful
  1. Olan Knight
  2. Wednesday, 21 July 2021 17:37 PM UTC
Apologies.

An EXE is generated, but the size of the executable file is 32KB when it should be 5 to 10 times that size.

In PBv12.1, nearly the same code creates an EXE of 15,483KB.

I try the 32KB exe anyway, tand the utility fails to even open.
  1. Helpful
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.