The CIQ_LOG.txt file reports
ERROR: Unexpected Type Error
DETAILS: Failed invoking <symbol>
STORE_ID: 00000000000000000000000000000000
CALLSTACK:
C:\alan\projects\raceQsGarmin\raceQs\source\engine.mc (sendLogs:905)
C:\alan\projects\raceQsGarmin\raceQs\source\engine.mc (dispData:1101)
C:\alan\projects\raceQsGarmin\raceQs\source\engine.mc (GPSData:808)
sendLogs:905 is here, highlighted in red:
if (logMarksArray.size() > 0){
var replayWptString;
for (var i =0; i< logMarksArray.size(); i++){
replayWptString = "P";
for (var j = 0; j<logMarksArray.size(); j++){[/COLOR]
replayWptString += ","+logMarksArray[j];[/COLOR]
}
replayWptString += ";";
unloadTrackString += replayWptString;
}
logMarksArray = new [0];
}[/CODE]
I don't have the log file for that time as I was in the midst of a race and had to restart the app which then ran fine for another hour (till it crashed again, but that's another story) so the .BAK file got overwritten .
I'm trying to understand what could generate the " Unexpected Type Error" reported on line 905.
If logMarksArraywas anything other than an array, I would get
ERROR: Symbol Not Found Error
DETAILS: Could not find symbol size.
Sometimes the line reference in the error log is refers to the line before the faulty line, so I look at line 906, highlighted blue but can't figure what condition could cause the error.
This code block is executed every 30 seconds, so it's far from being an obscure piece of code that gets executed infrequently, and it only crashed after around 40 minutes of normal running.
Since the crash is intermittent, and I'm not able to replicate it "in the lab", any constructive suggestions for strategies to capture the cause will be greatly appreciated.
Running on VA-HR