1. Phil Wallingford
  2. PowerBuilder
  3. Wednesday, 14 November 2018 22:23 PM UTC
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
Olan Knight Accepted Answer Pending Moderation
  1. Friday, 16 November 2018 03:40 AM UTC
  2. PowerBuilder
  3. # 1

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

Comment
  1. Phil Wallingford
  2. Friday, 16 November 2018 13:44 PM UTC
;Thanks for chiming in Olan. But I've been creating the EXE in a directory (shared/x64) that has the run-time DLLs.

Regards,

Phil
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 16 November 2018 15:35 PM UTC
Hi Phil;



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
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 15 November 2018 13:52 PM UTC
  2. PowerBuilder
  3. # 2

What is your database? The database client software must be the same bitness as the app.

Comment
  1. Phil Wallingford
  2. Thursday, 15 November 2018 20:51 PM UTC
Thanks for chiming in Roland.



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
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 15 November 2018 13:51 PM UTC
  2. PowerBuilder
  3. # 3

Did you deploy the 64bit runtimes? They are in C:\Program Files (x86)\Appeon\Shared\PowerBuilder\x64.

 

Comment
There are no comments made yet.
Phil Wallingford Accepted Answer Pending Moderation
  1. Thursday, 15 November 2018 13:45 PM UTC
  2. PowerBuilder
  3. # 4

If I remember I may be one Build back from the latest release, if you think that matters.

Comment
There are no comments made yet.
Phil Wallingford Accepted Answer Pending Moderation
  1. Thursday, 15 November 2018 13:44 PM UTC
  2. PowerBuilder
  3. # 5

Hi Chris.

 

PB 2017 R3 (don't have the Build number handy)

Windows 10 Professional

Real PC

Used different name

Phil

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 15 November 2018 14:47 PM UTC
Sounds like any other development environment.



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.

  1. Helpful
  1. Phil Wallingford
  2. Thursday, 15 November 2018 20:54 PM UTC
Thanks, Chris.



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?

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 15 November 2018 04:08 AM UTC
  2. PowerBuilder
  3. # 6

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

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.