Library for handling NMEA message in Windows Desktop, Store, Phone, Universal, and Xamarin (Android + iOS), coming from files, bluetooth, serial port or any stream
When NmeaDevice.ReadAsync permanently throws an exception (e.g. because m_stream is broken), the read task started in NmeaDevice.StartParser goes into an endless empty loop with high CPU consumption.
The empty catch block (which is a bad thing anyway) should instead end the loop and signal the termination to the NmeaDevice instance, e.g. by raising a ReadFailed event.
When
NmeaDevice.ReadAsync
permanently throws an exception (e.g. becausem_stream
is broken), the read task started inNmeaDevice.StartParser
goes into an endless empty loop with high CPU consumption.The empty
catch
block (which is a bad thing anyway) should instead end the loop and signal the termination to the NmeaDevice instance, e.g. by raising aReadFailed
event.