Kbase P118464: How to tell if PGEN code is used at runtime ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/18/2009 |
|
Status: Verified
GOAL:
How to tell if PGEN code is used at runtime ?
GOAL:
4GL Generator
GOAL:
PGEN
FACT(s) (Environment):
Dynamics
OpenEdge 10.x
All Supported Operating Systems
FIX:
For troubleshooting purposes involving Generated-4GL procedures/PGEN code in a Dynamics session, it may be useful to check that the session actually executes the generated code for an object instead of loading the object from the repository. (For example to check if an outdated version of the object appears to be loaded.)
The easiest way to achieve this is by activating the client logging on the test session (4GLTrace:2 log entry type is sufficient), and checking the logfile to see if the \ry\clc\gen\<object name>.r file is being run.
If there are references to this file name, the PGEN code for the object is used.
If the PGEN code is not used, there will be a reference to the rendering procedure of the Dynamics class the object belongs to instead.
For example, the log entries for an independent container will look like this:
WITH pgen code:
Run E:\dlc\101A\src\dynamics\ry\clc\gen\pidgeon.r PERSIST [launchContainer - E:\dlc\101A\gui\dynamics\af\app\afsessrvrp.r @ 9574]
WITHOUT pgen code:
Run ry/uib/rydyncontw.w PERSIST [launchContainer - E:\dlc\101A\gui\dynamics\af\app\afsessrvrp.r @ 9574]