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
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 4 November 2024 21:51 PM UTC
  2. Beta Testing
  3. # 1

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. # 2

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.