1
Vote

NmeaInterpreter SentenceRecorded and SentenceReceived

description

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

comments