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 :-(
gnv_app.pfc_exit is called from menu/exit it can do some processing after menu exit but pfc_exit is not called when w_frame or application is closed by alt+f4 or close icon on window
gnv_app.pfc_close on the other way is called regardless of type of ending application (from menu, alt+f4, close icon on window) so place for me wich is called every time when application closes is pfc_close on gnv_app .