- Aleš Vojáček
- PowerBuilder
- Thursday, 20 October 2022 02:28 PM UTC
Hi all,
I need to do some cleanup just before application ends.
Which of these events are ok for that?
I will exist application using menu/exit it will fire pfc_exit but no pfc_close.
When I close application usig close mdi_frame x then it will fire pfc_close, but no pfc_exit.
I tried to find some info about correct life time of pfc application but did not find any.
Is it ok to fire pfc_exit from pfc_close (events from gnv_app instance)
Thank you Ales
EDIT>
The problem was, because I tried to find one place for some cleaning and auditing when app ends (by different type of ending).
I had break points to find that place.
Powerbuilder IDE while debugging did not stop at one place if i closed application by clickink exit in menu (then it stops in pfc_exit event of gnv_app) but did not stop in pfc_close event. When I try to close app using Alt+F4 then debugger did not stop in any place (pfc_exit, pfc_close nor in destructor of gnv_app)
After hours of debugging and trying I restarted PB and then it stops in pfc_close every time and every type of closing app. So that the problem was some strange behaviour of PB Debugger :-(
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.