i have a weird problem.
i send a UDP Package:
It works great in Debug mode. But in Release i get an error:
so whats wrong?
i send a UDP Package:
B4X:
Sub sendCommand(msg As String)
Dim Packet As UDPPacket
data = msg.GetBytes("UTF8")
Packet.Initialize(data,GetBroadcastAddress,52829)
For i = 1 To 3
UDPSocket1.Send(Packet)
Wait For (CheckResponse(2000)) Complete (Success As Boolean)
If Success Then Exit
Next
If i = 4 Then
Log("Failed to send...")
End If
End Sub
It works great in Debug mode. But in Release i get an error:
java.lang.RuntimeException: java.lang.ClassCastException: anywheresoftware.b4a.objects.SocketWrapper$UDPSocket$MyDatagramPacket cannot be cast to anywheresoftware.b4a.objects.SocketWrapper$UDPSocket
so whats wrong?