- Chris Goedde
- PowerBuilder
- Monday, 1 April 2024 04:00 PM UTC
Getting back into PB after many years away. We recently upgraded a project from PB version 9 to PB version 2022. It seems some of the error handling has changed. We are seeing many cases of null object references with variables that we didn't used to see. It seems like events or functions are firing or starting to fire when a window is closed while the event/function is about to happen or is happening. Then an instance variable on the window is no longer valid and PB is throw a null object reference. I don't know if the events weren't getting called before or if the exception was just being ignored before.
Did something change in regards to this since PB9? If so, are there recommended ways to code around this?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.