Thread is related to B4i APP.
When i clicked on button, APP gets crashed (completely closed, not even at background). I am not getting any message or information in log, so, is there way to know the reason?
By the way, for B4A it is working fine. I am using B4XPages.
Does the button have code that it executes? then I would comment it out and try again. If it still crashes then I understand your question, but if not then you have clearly given too little information.
@Erel, i could get logs however it was too hard for me to find the root cause from logs....
Meanwhile, i myself debugged the code and resolved the issue, thank you for your support.
@Erel B4i APP was crashing because i want to close UDPSkt while page disappears. what could be the reason? by the way, its not happening for B4A.
UDP Skt code:
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Dim UDPSkt As UDPSocket
End Sub
Private Sub B4XPage_Appear()
UDPSkt.Initialize("UDP", 4211, 255)
End Sub
Private Sub B4XPage_Disappear
UDPSkt.Close
End Sub
Not enough information here to help you, however it looks like a mistake to start and stop the UDP socket based on the page visibility. Start it once and keep it open as long as the process is running.