Bug? ExitApplication doesn't trigger Form_Closed

jmon

Well-Known Member
Licensed User
Longtime User
Hi,

I noticed that ExitApplication doesn't trigger Form_Closed and Form_CloseRequest like in this example:

B4X:
Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.RootPane.LoadLayout("Main") 'Load the layout file.
    MainForm.Show
End Sub

Sub btnClose_Action
    ExitApplication
End Sub

Sub MainForm_CloseRequest (EventData As Event)
    Log("Close request")
End Sub

Sub MainForm_Closed
    Log("Closed")
End Sub

You can check the uploaded file. Thank you.

Regards
Jmon
 

Attachments

  • PrivateFormEventsNotCalled.zip
    1.4 KB · Views: 211
Top