1. Paweł Kasperek
  2. Beta Testing
  3. Monday, 4 November 2024 20:41 PM UTC

Hi,

I read in the documentation that after migration to PB2025, some functions used in reflection are disabled:

I use follow functions:

  • FindClassDefinition

  • FindFunctionDefinition

  • FindTypeDefinition 

How can I replace these functionalities? Maybe, I can't be using the new PB2025 compiler?

Regards,

Pawel

Who is viewing this page
Peter Pang @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 27 November 2024 03:14 AM UTC
  2. Beta Testing
  3. # 1

Hi Pawel,
We have prepared an offline installation version PB2025 build 3484.
We adapted some library-related functions. In addition, the function IsRunningAsSolution is provided to determine whether PB IDE is running under solution.
Please download and install it to verify the issue you reported and let us know if any problems.

PowerBuilder Download Link:
https://file.appeon.com/download/APB/2025/R1/OneOff/build_3484.00/OneOff-PB2025R1-3484.zip

SHA256 Hash of OneOff-PB2025R1-3484.zip:
https://file.appeon.com/download/APB/2025/R1/OneOff/build_3484.00/SHA256/OneOff-PB2025R1-3484.txt

Regards,
Peter

Comment
There are no comments made yet.
Peter Pang @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 November 2024 05:00 AM UTC
  2. Beta Testing
  3. # 2

Hi, Pawel,

Thank you for your time in trying the PB 2025 beta!
Solution no longer has the concept of pbl, and does not work when running in PB IDE, but works the same as before when compiled into exe and PBD.

Best Regards,
Peter

Comment
  1. Simon Jutzi
  2. Monday, 11 November 2024 09:28 AM UTC
From my point of view, this is definitely not an enhancement request, but an unpleasant limitation of the new workflow which should and can be solved by Appeon.
  1. Helpful
  1. Simon Jutzi
  2. Monday, 11 November 2024 09:31 AM UTC
  1. Helpful 2
  1. Armeen Mazda @Appeon
  2. Monday, 11 November 2024 16:03 PM UTC
Understand it is unpleasant limitation. We classify things either bugs or enhancement... so this is enhancement. You can of course in description of your issue explain that you view this as a serious and important issue rather than nice-to-have improvement.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 4 November 2024 21:51 PM UTC
  2. Beta Testing
  3. # 3

Hi Pawel;

  I have these functions in my 2022R3 STD Framework version. When converted to PB 2025 workspace & then over to a Solution, they are all working just fine.

  I think that why my code is still working is that it does not reference a PBL (argument variation) just plain class names. That lets the PB runtime locate the class code in its own way vs forcing the specific library processing under your PowerScript control.  HTH 

Regards ... Chris 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 4 November 2024 21:32 PM UTC
  2. Beta Testing
  3. # 4

Hi, Pawel -

I've not verified this, but I believe the restriction is that you cannot utilize these functions when running the application from the IDE when the app has been converted to Solution format. Once compiled/deployed, I think these functions will work normally. My guess is that in order for these functions to work, they require access to the intermediate object code that is kept in a PBL (or compiled into PBD/DLL's). Only source code is available in a Solution-based app.

The same restriction is in place for the LibraryDirectory and LibraryDirectoryEx PowerScript functions.

If this is a critical issue for you, you will need to keep your application in a Workspace and continue to use PBL's.

Best regards, John

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.