My project includes B4XMainPage and RunActivity. I am using UDPSkt for the communication. APP automatically closes when i change the orientation when i am on B4XMainPage. I have attached error message
Following is the code added in sub B4XPage_Created.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Please note: I do not face error while I am in RunActivity.
Please help me how to solve this problem, thanks.
			
			Following is the code added in sub B4XPage_Created.
			
				B4XPage Created:
			
		
		
		If UDPSkt.IsInitialized=False Then
        UDPSkt.Initialize("UDP",4211,255)
End IfPlease note: I do not face error while I am in RunActivity.
Please help me how to solve this problem, thanks.
 
				 
 
		 
 
		 
 
		 
 
		