Error: Out Of Memory Error Details: Failed loading application
Today I was really frustrated by Garmin SDK
I have defined global Dictionary variable below and after that I was not able to even load application to emulator because of OutOfMemory error.
var wayPointsCoordinatesDictionary = { "1000" => [42.243712, -83.614653], "1001" => [42.241023, -83.612350], "1002" => [42.241013, -83.608362], "1004" => [42.241053, -83.602525], ... 1100 records in total }
Out Of Memory happens even if I reduce dictionary to 75 records.
Trivial math gives me size of Dictionary of about 1K for 75 records. So this size of dictionary is really critical for application? I cant believe!
I am a newbie with Garmin SDK, so could you please point me out to additional reading related to CIQ applications memory mapping, memory restrictions, etc?
P.S. My manifest requests for only two permissions
<iq:permissions> <iq:uses-permission id="Communications"/> <iq:uses-permission id="Positioning"/> </iq:permissions>