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 :-(
I need to write about application ending into DB audit table.
So I need one place which is called in any type of appending.
But in some situations is pfc_exit called and sometimes pfc_close is called sometimes either of them.
I hoped that pfc_close is one which is called after pfc_exit but that is not that case.
So I hoped, that there is somewhere default/recommended event flow of pfc application, but I found none :-(