I have put a try\catch arouns some code to make the output nicer to read…but the exception is still shown in the output window even though i have caught it…
try
{
//exception
}
catch (Exception)
{
Program.loginfo("Could not process GPGSV Data");
}
Output…
#### Exception System.IndexOutOfRangeException - 0xa9000000 (3) ####
#### Message:
#### zigbox.fezcobra2.GPS.MTK3339::ParseGSVData [IP: 0053] ####
#### zigbox.fezcobra2.GPS.MTK3339::_gpsSP_DataReceived [IP: 0140] ####
#### System.IO.Ports.SerialPort::DataEventHandler [IP: 0012] ####
A first chance exception of type ‘System.IndexOutOfRangeException’ occurred in zigbox.fezcobra2.exe
Could not process GPGSV Data