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
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- I want an EXE with no PDBs or DLLs
- Olan Knight
- PowerBuilder
- Monday, 19 July 2021 20:50 PM UTC
- Tuesday, 20 July 2021 14:42 PM UTC
- PowerBuilder
- # 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
- Tuesday, 20 July 2021 05:30 AM UTC
- PowerBuilder
- # 2
Exe with no runtime requirement will still be a better one.... Like the one that we get from VB.
Comment
- Miguel Leeuwe
- Wednesday, 21 July 2021 21:35 PM UTC
Ha, I get it Sivaprakash. VB 6 didn't need the .net framework.
-
Helpful Loading... Helpful 0
- Sivaprakash BKR
- 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). )
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). )
-
Helpful Loading... Helpful 0
- Roland Smith
- Thursday, 22 July 2021 12:44 PM UTC
VB6 has a runtime DLL.
-
Helpful Loading... Helpful 0
There are no comments made yet.
- Monday, 19 July 2021 21:31 PM UTC
- PowerBuilder
- # 3
Hi Olan;
Can you be more detailed about "not working"?
Regards ... Chris
Comment
- Kevin Ridley
- Tuesday, 20 July 2021 14:20 PM UTC
If that's the case he should be able to put them in the PBR file.
-
Helpful Loading... Helpful 0
- Sivaprakash BKR
- 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.
Yes there is a PBR file, hope Olan would have included the required dw names' in it.
-
Helpful Loading... Helpful 0
- Olan Knight
- 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.
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.
-
Helpful Loading... Helpful 0
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.
However, you are not allowed to reply to this question.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »
The end result is a 32K executable, when the size should be closer to 16K.
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
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.