Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

ArgumentOutOfRangeException after connecting via bluetooth #22

Open
chrisgabr opened this issue Oct 30, 2016 · 0 comments
Open

ArgumentOutOfRangeException after connecting via bluetooth #22

chrisgabr opened this issue Oct 30, 2016 · 0 comments

Comments

@chrisgabr
Copy link

Environment:
Win 8.1 Pro x64
Console application

I get an ArgumentOutOfRangeException within Lego.Ev3.Tester.Console after connecting the ev3 via bluetooth. The console application works fine with usb. Any ideas?

System.ArgumentOutOfRangeException wurde nicht behandelt.
HResult=-2146233086
Message=Nicht negative Zahl erforderlich.
Parametername: count
ParamName=count
Source=mscorlib
StackTrace:
bei System.IO.BinaryReader.ReadBytes(Int32 count)
bei Lego.Ev3.Desktop.BluetoothCommunication.SerialPortDataReceived(Object sender, SerialDataReceivedEventArgs e) in C:\Entw\Work\Mindstorm\Ev3\Lego.Ev3.Desktop\BluetoothCommunication.cs:Zeile 51.
bei System.IO.Ports.SerialPort.CatchReceivedEvents(Object src, SerialDataReceivedEventArgs e)
bei System.IO.Ports.SerialStream.EventLoopRunner.CallReceiveEvents(Object state)
bei System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
bei System.Threading.ThreadPoolWorkQueue.Dispatch()
bei System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
InnerException:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant