There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
NmeaInterpreter SentenceRecorded and SentenceReceived
The event SentenceReceived is flagged as Obsolete.
To use SentenceRecorded instead, you have to provide a stream to record the sentence to via the StartRecording method even if you don't want it.
Then SentenceRecorded gets fired ok.... It gets the whole sentence which makes it just a clone of SentenceReceived. No performance benefits here...
The lock for writing to the stream is protected so a client can not lock the buffer and thus safely remove sentences from the stream which will build until it runs out of memory.
All examples provided use the SentenceReceived. Of course that doesn't work except in Debug...
How about something simple here guys - just remove the Obsolete and the #if debug from SentenceReceived and my code will carry on working... Either that or provide a thread-safe method to empty the RecordingStream