Hey Guys,
I'm having an issue with my code and it's that memory is building up at a rate of 2mb every 5 to 10 minutes, in regular intervals.
I've narrowed it down to the 'Astreams_NewData' sub routine that handles receiving data over bluetooth.
The code in the subroutine doesn't seem as though it would cause the issues, does anyone have any ideas?
I'm having an issue with my code and it's that memory is building up at a rate of 2mb every 5 to 10 minutes, in regular intervals.
I've narrowed it down to the 'Astreams_NewData' sub routine that handles receiving data over bluetooth.
The code in the subroutine doesn't seem as though it would cause the issues, does anyone have any ideas?
B4X:
Sub AStreams_NewData (Buffer() As Byte)
Dim BlueToothString As String
Dim CharacterFloat As Float
BlueToothString = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
CleanBlueToothCommand = CleanBlueToothCommand & BlueToothString
If CleanBlueToothCommand.Length > 20 Then CleanBlueToothCommand = ""
End Sub