1. Roland Smith
  2. PowerBuilder
  3. Wednesday, 2 February 2022 00:24 AM UTC

I have a C++ application that runs code in a PB 2019-R3 object. Works great in 32bit. In 64bit I am getting an abort in PBSHR when closing the session.

The PB object has an instance string array that the C++ code needs to access. I found in 64Bit that AcquireArrayItemValue works as expected but then later when it releases the session, PBSHR aborts.

IPB_Value* ipv;
pbarray pbArgValues;
pblong dim[1]{};

ipv = session->AcquireArrayItemValue(pbArgValues, dim);

 

// cleanup
session->Release();  <--- aborts here
FreeLibrary(hInst);

The abort info:

Faulting module name: PBSHR.dll, version: 19.2.0.2728, time stamp: 0x6100faa9
Exception code: 0xc0000005
Fault offset: 0x0000000000177b1f

 

My question is 64bit PBNI supported?

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 2 February 2022 00:31 AM UTC
  2. PowerBuilder
  3. # 1

Hi Roland, Here is the 64-bit migration guide regarding PBNI: https://docs.appeon.com/pb2021/migrating_32bit_applications_to_64bit/header-n77.html#header-n166 

Comment
  1. mike S
  2. Wednesday, 2 February 2022 14:46 PM UTC
The migration guide just talks about the IDE being 32 bit and how that is a problem.

"Not supported: PBNI SDK for developing 64-bit PowerBuilder extensions"

which i take it as talking about extension to the ide.



"But for runtime, you can still package and distribute the 64-bit extension libraries with your 64-bit applications."

64 bit PBNI is supported for runtime as how that is written.

  1. Helpful 1
  1. Miguel Leeuwe
  2. Wednesday, 2 February 2022 16:13 PM UTC
We really need a 64 bit IDE.
  1. Helpful
  1. mike S
  2. Wednesday, 2 February 2022 17:21 PM UTC
"We really need a 64 bit IDE."

i'd rather have more/better functionality in the datawindow before a better ide is worked on.
  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.