1. Paweł Kasperek
  2. PowerBuilder
  3. Thursday, 11 July 2024 11:31 AM UTC

Hi,

I would use Powerbuilder TriggerEvent method to call events defined in PowerScript  (link: https://docs.appeon.com/pb2022r3/powerscript_reference/TriggerEvent_.NET_Method_func.html). During the call .NET function, I returned result -52   -- The objectname is not registered. I checked the object name and event and they are corrected. How I can check what's wrong? Where it's the problem? 

I cloned your demo repository from  Github - https://github.com/Appeon/PowerBuilder-Components-Example and I got the same error when I called the FTP download example.

Regards,

Pawel

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Thursday, 11 July 2024 16:41 PM UTC
  2. PowerBuilder
  3. # 1

Hi Paweł,

 

There's a specific circumstance regarding the -52 error which involves duplicate pbdotnetinvoker.dll assemblies; please review the following documentation: https://docs.appeon.com/pb2022r3/powerscript_reference/TriggerEvent_.NET_Method_func.html

 

Regards,
Francisco

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 11 July 2024 15:33 PM UTC
  2. PowerBuilder
  3. # 2

Hi Pawel;

  Can you tell us ...

  • What version & build of PB are you using?
  • Are you using the .NET DLL Importer PB tool to expose the .NET Class's methods to your PB App?
  • Are you calling the .Net class via the DorNetAssembly PB built-in Object?
  • Are you you instantiating the .Net class via the LoadWithDotNet() PB command?

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.