La memoria continua creciendo de a poquito y luego de un tiempo aproximado de 6 horas sale el error OutOfMemoryException
.
Uso el siguiente método para pasar los datos que recibo en el evento SerialPort1_DataReceived
y considero que tal vez ese puede ser el problema.
Cualquier ayuda de antemano les agradezco. Si necesitan mas detalles para poder ayudarme háganme lo saber.
Private Sub SetText1(ByVal [text] As String)
If Me.TextBox1.InvokeRequired Then
Dim l As New ContextCallback(AddressOf SetText1)
Me.Invoke(l, New Object() {[text]})
Else
Me.TextBox1.Text = [text]
End If
End Sub