It's very hard to add this code without revealing sensitive data, so I explain problem as best as I can.
There is a user objects, let's call them uo_object and uo_caller.
uo_object has 2 events:
ue_refresh_1 and ue_refresh_2
object uo_caller calls events from uo_object like:
iuo_obj.event ue_refresh1.
PROBLEM:
When i full-build application, and run it, line iuo_obj.event ue_refresh1
calls not event ue_refresh1 but ue_refresh2 (?!?!?!?).
But when i open powerbuilder and add a space, new-line any where in this uo_caller,line iuo_obj.event ue_refresh1 calls ue_refresh1.
Of course when i again full-build application after adding space or new-line, this behaviour is repeating.
Does anyone has an idea why??
I'm on Powerbulder 2017 R2. This is also happening on R3 version
I have seen your type of issue in three scenario types:
1) Duplicate class name across PBL files in library list and different library lists. Maybe library list when doing Full Build differs from library list you have while editing code? Same issue when developers create their own library lists instead of sharing the library list. Or all developers use individual work.pbl library in front of library list - and that work.pbl has different content.
2) Duplicate EventID - sometimes not in same class but in ancestor/descendant classes. Compilation sequence determines which Event "wins".
3) Some PBL shared across multiple apps. Compile your class under app A - then it misbehaves running app B. Now compile same class under app B and B runs fine - however now running app A fails.