Seeed gps module exception

I’m frequently getting the following error from the GPS module on my data acquisition device. Any explanation or fix for this would be fantastic.

#### Exception System.ArgumentOutOfRangeException - CLR_E_OUT_OF_RANGE (1) ####
#### Message: 
#### System.String::Substring [IP: 0000] ####
#### Gadgeteer.Modules.Seeed.GPS::serial_LineReceived [IP: 0016] ####
#### System.Reflection.MethodBase::Invoke [IP: 0000] ####
#### Gadgeteer.Program::DoOperation [IP: 001a] ####
#### Microsoft.SPOT.Dispatcher::PushFrameImpl [IP: 0054] ####
#### Microsoft.SPOT.Dispatcher::PushFrame [IP: 001a] ####
#### Microsoft.SPOT.Dispatcher::Run [IP: 0006] ####
#### Gadgeteer.Program::Run [IP: 0020] ####

A first chance exception of type ‘System.ArgumentOutOfRangeException’ occurred in mscorlib.dll

hi Jstone05, welcome to the forum !

That typically means that there’s a data error coming from the GPS that the substring command can’t parse (possibly it’s a truncated message, where the full string is expected).

Here’s where it might get trickier though. To really track this down you’ll need to download the driver code and load that into your project - the general approach is in https://www.ghielectronics.com/docs/122/gadgeteer-driver-modification

What you’ll want to do is inspect the string that is being parsed when the exception occurs, and see what you think is potentially causing that. Report your findings back here and I am sure people will help too!