1. Ong Chin Keat
  2. PowerBuilder
  3. Friday, 28 June 2024 11:08 AM UTC

hi all,

I face this "Error calling method of a PBNI object" when deploy PB2022R2 version application to client computer.

I have follow possible method as this QnA link  but still failed.

I'm also ensure those files highlighted in this link included in my runtime library folder "Runtime 22.1.0.2828", the files are xerces-c.dll, pbXerces.dll, PBDOM.pbx, PBDom220.pbd , vcruntime140.dll, vccorlib140.dll, but all these can't work either.

Tried also install latest VC Run Time library also same error.  

 

Please help and advise what miss out.

 

thanks,

Dev Ong

 

Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 28 June 2024 11:53 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi.

Please read carefully the contents in the following link:

Adding pbdom.pbx to your application - - Application Techniques (appeon.com)

You don't need to add the pbx file to the target. You have to import it.

Use the pbx provided for the version of powerbuilder you are using.

If you want to work with the provided pbd then you don't need to use the pbx. You need one of those. It's up to you to choose which one.

Andreas.

Comment
  1. Roland Smith
  2. Friday, 28 June 2024 13:08 PM UTC
The PBX is still required if using the provided PBD. The PBD contains the same interface objects that a PBL contains after doing an Import Extension. The PBX is a C++ DLL that performs the functions.

  1. Helpful
  1. Andreas Mykonios
  2. Friday, 28 June 2024 13:23 PM UTC
You are right. You are speaking for deployment. But in the IDE you have to import the pbx or add the pbd to the targer.

Andreas.
  1. Helpful
There are no comments made yet.
Ong Chin Keat Accepted Answer Pending Moderation
  1. Saturday, 29 June 2024 05:26 AM UTC
  2. PowerBuilder
  3. # 1

hi Andreas,

Thanks for highlight. In fact I'm doing the import method (as per 2nd picture I attached at my Question screen), however it won't work. So I try include the PBDOM.pbx inside the library list. Both way can't work. I'm not sure what miss out. Probably I need to install PB2022R2 inside my client PC?

I tried put the searching path into env variable but cant help also.

Anyidea? 

regards,

Dev Ong.

Comment
  1. Roland Smith
  2. Sunday, 30 June 2024 00:28 AM UTC
The PBX file needs to be included with the PB Runtime DLL files when deploying the executable. Do not include it in the target library list.
  1. Helpful 1
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.