Hi,
my programm build some subforms at runtime. I add the same close-event to every subform. If the programm run out of the IDE everything works fine but after compiling an optimized windows-exe the close-event do not run? Why? :sign0085:
Here is an example source for the problem:
Best regards,
grolle
my programm build some subforms at runtime. I add the same close-event to every subform. If the programm run out of the IDE everything works fine but after compiling an optimized windows-exe the close-event do not run? Why? :sign0085:
Here is an example source for the problem:
B4X:
Sub Globals
End Sub
Sub App_Start
AddForm("Form1", "Close-Test")
AddEvent("Form1", Close, "Form1Close")
Form1.Show
End Sub
Sub Form1_Close
Msgbox("Normal-Close-Event")
End Sub
Sub Form1Close
'This is the event I need at all the time!!!
Msgbox("Common-Close-Event")
End Sub
Best regards,
grolle
Last edited: