I have built a very simple PB application. I can deploy it as a 32-bit application with no trouble. For 64-bit I just change the project setting to 64-bit, rebuild and redeploy with the EXE to be written
to the x64 PowerBuilder Shared directory.
When run, the application briefly (sub-second) shows the window and then shuts down.
I've also tried the run-time packager with the same result. What am I missing?
Any help appreciated....Phil
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- 64 - bit Deployment
Resolved
64 - bit Deployment
- How-to
- Phil Wallingford
- PowerBuilder
- Wednesday, 14 November 2018 22:23 PM UTC
- Thursday, 15 November 2018 04:08 AM UTC
- PowerBuilder
- # 1
Hi Phil;
Can you tell us ...
1) PB version & Build
2) MS-Windows version
3) Using a Real PC or VM
4) Did your project use a different EXE name for 64bit vs 32bit compile?
Regards ... Chris
- Thursday, 15 November 2018 13:44 PM UTC
- PowerBuilder
- # 2
Hi Chris.
PB 2017 R3 (don't have the Build number handy)
Windows 10 Professional
Real PC
Used different name
Phil
- Chris Pollach @Appeon
- Thursday, 15 November 2018 14:47 PM UTC
I have not had any problems compiling to 64bit since PB12.6 introduced the feature. However, you may need to adjust your App(s) for 64bit external DLL's, DB drivers, SDK calls etc.
If a simple "Hello World" 64 bit App though does not work, then it could be because:
1) The 64bit PB run-time is not is the O/S System Path
2) You did not deploy the 64bit run-time using the Packager utility.
-
Helpful Loading... Helpful 0
- Phil Wallingford
- Thursday, 15 November 2018 20:54 PM UTC
Shouldn't creating the EXE in the x64 Shared directory give it access to everything it needs?
I'm going to try this another machine and see if the problem persists. I went through with TeamViewer with a PowerGen customer and had no trouble on his machine.
So probably something awry with the PC I've been using?
-
Helpful Loading... Helpful 0
- Thursday, 15 November 2018 13:45 PM UTC
- PowerBuilder
- # 3
If I remember I may be one Build back from the latest release, if you think that matters.
- Thursday, 15 November 2018 13:51 PM UTC
- PowerBuilder
- # 4
Did you deploy the 64bit runtimes? They are in C:\Program Files (x86)\Appeon\Shared\PowerBuilder\x64.
- Thursday, 15 November 2018 13:52 PM UTC
- PowerBuilder
- # 5
What is your database? The database client software must be the same bitness as the app.
- Phil Wallingford
- Thursday, 15 November 2018 20:51 PM UTC
It's a simple Hello World application (the limit of my ability) and no DB.
I tried creating the EXE in the Shared/PowerBuilder/x64 directory figuring it would have the best chance of working. The I created a Run-time Package but still no luck.
Phil
-
Helpful Loading... Helpful 0
- Friday, 16 November 2018 03:40 AM UTC
- PowerBuilder
- # 6
Phil -
You'd think that an EXE is all you need, but that's not the case.
You need to deploy the EXE and the required 64-bit PowerBuilder DLLs into your target folder on the target platform.
Do that and it should run.
Later -
Olan
- Phil Wallingford
- Friday, 16 November 2018 13:44 PM UTC
Regards,
Phil
-
Helpful Loading... Helpful 0
- Chris Pollach @Appeon
- Friday, 16 November 2018 15:35 PM UTC
I am leery to say this but, I wonder if reinstalling PB2017R3 might be the answer? I have never had issues with my 64bit App compiles in PB2017 GA, R2, or R3 releases on my W10 PC's. Your lack of compiling any simple PB App into a to 64bit EXE is most concerning (and certainly not normal).
PS: Have you tried running the PB IDE and/or your PB App EXE in "ADMIN" mode (as an interest)?
Regards ... Chris
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.