update global functions at runtime

Started by Thomas Bock, August 04, 2023, 05:55:13 AM

Previous topic - Next topic

Thomas Bock

Each time we update global functions on a Windows system they don't work any more. PxPlus throws many types of errors depending on how the functions have changed. Here is what we do in order to update/reload the global functions:


bkpPC = prm('PC')
set_param 'PC' = 0
! do update actions
set_param 'PC' = bkpPC
drop pth("globalFunctions.pvx"), err = *next
call "globalFunctions.pvx" ! addr itself


What needs to be done for a successful update?