-
Devasenaapathy S
- PowerBuilder
- Friday, 7 August 2026 05:52 AM UTC
Hi Everyone,
I'm facing a very strange issue in a PowerBuilder 2022 application and would appreciate any suggestions from experienced PowerBuilder developers.
I have a window (w_open_wo) that is opened using the standard OPEN() function:
OPEN(w_open_wo)
Inside the Open event of this window, I create a resize service object:
invoResize = CREATE n_cst_resize
Later, in the Resize event, I call:
invoResize.Event pfc_Resize(sizetype, This.WorkSpaceWidth(), This.WorkSpaceHeight())
When I step through the code (F8) after executing:
OPEN(w_open_wo)
the debugger does not enter any of the following events:
Constructor Event
Open Event
Instead, it immediately enters the Resize event.
When I check:
IsValid(invoResize)
it returns FALSE, because the Open event never executed and therefore:
invoResize = CREATE n_cst_resize
was never reached.
As a result, I am getting Null Object Reference.
Thanks, and Regards
Devasenaapathy S
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.