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 have same setup.
But if I close application using x icon in window title bar (no menu Exit, toolbar Exit) but simply close window with x icon or with alt+f4 . Then evets pfc_close either pfc_exit nor destructor of gnv_app are not fired :-(
After restart of PowerBuilder, now debbuger stops in those events :-(
That is strange.
A.