N Nitin Joshi Active Member Licensed User Longtime User Mar 24, 2025 #1 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.
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.
Alexander Stolte Expert Licensed User Longtime User Mar 24, 2025 #2 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. Upvote 0
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.
N Nitin Joshi Active Member Licensed User Longtime User Mar 24, 2025 #3 Alexander Stolte said: Does the button have code that it executes? Click to expand... No, not even excuting first line as first line after button click event is log("here"). I can not even get "here" message in log. Upvote 0
Alexander Stolte said: Does the button have code that it executes? Click to expand... No, not even excuting first line as first line after button click event is log("here"). I can not even get "here" message in log.
Erel B4X founder Staff member Licensed User Longtime User Mar 25, 2025 #4 1. Post the code of this button event. 2. Might be more information in the device logs: https://www.b4x.com/android/forum/threads/tip-on-device-logs.156056/#content Upvote 0
1. Post the code of this button event. 2. Might be more information in the device logs: https://www.b4x.com/android/forum/threads/tip-on-device-logs.156056/#content
N Nitin Joshi Active Member Licensed User Longtime User Mar 25, 2025 #5 Ok and thank you @Erel I will check tonight and update here. Upvote 0
N Nitin Joshi Active Member Licensed User Longtime User Mar 26, 2025 #6 @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. Upvote 0
@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.
N Nitin Joshi Active Member Licensed User Longtime User Mar 26, 2025 #7 @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. Code: Copy 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 Upvote 0
@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. Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Mar 27, 2025 #8 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. Upvote 0
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.
N Nitin Joshi Active Member Licensed User Longtime User Mar 27, 2025 #9 Erel said: Start it once and keep it open as long as the process is running. Click to expand... Do i need to stop (UDP_Skt.close) in page disappear event i. e. Switching from one page to another? Upvote 0
Erel said: Start it once and keep it open as long as the process is running. Click to expand... Do i need to stop (UDP_Skt.close) in page disappear event i. e. Switching from one page to another?
Erel B4X founder Staff member Licensed User Longtime User Mar 27, 2025 #10 No. Don't stop it all. With B4XPages the pages are never paused. Unlike with B4A activities. Upvote 0
N Nitin Joshi Active Member Licensed User Longtime User Mar 27, 2025 #11 Ok, noted with thanks... Upvote 0