1. Raheel Allauddin
  2. PowerBuilder
  3. Tuesday, 6 September 2022 21:42 PM UTC

As far as I know PB runtime is free and necessary to execute desktop applications, is it necessary to run PB runtime msi to install it or just run it one time on any machine and copy the runtime files from C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 21.0.0.1506 and provided with the exe files. The reason I am asking is our application crashes when it starts and throws exception

Faulting application name: mds.exe, version: 1.0.0.1, time stamp: 0x625ecb7f
Faulting module name: PBSHR.dll, version: 21.0.0.1509, time stamp: 0x625ecb82
Exception code: 0xc0000005
Fault offset: 0x0015d4d4
Faulting process id: 0x6648
Faulting application start time: 0x01d8c2369af3d158
Faulting application path: C:\Users\xxxxxx\Downloads\MDS-PB-2021\EXE\mds.exe
Faulting module path: C:\Users\xxxxxx\Downloads\MDS-PB-2021\Runtime 21.0.0.1509\PBSHR.dll
Report Id: 9ae97719-6c17-4f6a-aee1-7cb813563caa
Faulting package full name:
Faulting package-relative application ID:

 

We are using copy files approach.

 

 

Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 7 September 2022 05:59 AM UTC
  2. PowerBuilder
  3. # 1

Hi Raheel.

One thing that I see is that you mention two different versions of runtime.

C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 21.0.0.1506 and provided with the exe files

And later:

Faulting module name: PBSHR.dll, version: 21.0.0.1509, time stamp: 0x625ecb82

Aside from answers provided by others, try not to mix runtimes. If your exe was created using PB 2021 1506 then you should deploy runtimes from 1506. If it was created using 1509 then you should deploy runtimes from 1509.

Andreas.

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 6 September 2022 21:55 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Raheel -

Can you run the application successfully from the PB 2021 IDE?

Does it run successfully as a compiled app on the same PC where PowerBuilder is installed?

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Tuesday, 6 September 2022 22:48 PM UTC
  2. PowerBuilder
  3. # 3

yes, you can simply copy, which is what we do for our test builds.

 

copy the runtime into your application directory (where your exe is). copy all the files in the appeon runtime directory.  If it is 64 bit, then make sure you copy the 64 bit subdirectory.

that is the simplest. 

 

you can make it more complex by using the xml file to point to where the runtime is located.  You will have to edit that.

 

Comment
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Friday, 9 September 2022 12:00 PM UTC
  2. PowerBuilder
  3. # 4

One or two or few commands that's not compatible with PB 2021 may also be the reason.   For us, we had a legacy function to read the current directory in PB 6.5 was the reason for this failure, when we migrated to PB 2017.   Changing that function call solved that issue.   

Happiness Always
BKR Sivaprakash

 

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.