Hi,
Bumped into a weird problem today.
I wrote a very simple App that starts a session, when I push a button it calls getGeometry() and writes on the screen how many points are recorded.
This works without any issues. It runs for hours and my free memory stays around 45K without decreasing.
Now I add to my App a whole bunch of classes without changing anything to the actual code that is executed. So I just copy/paste some .mc files into my source folder. I do not instantiate or use any of those classes. They are just there to fill up the memory with code. Now I have 8 K free.
The second scenario runs for a few minutes. Then it crashes the device. I get the Garmin logo, it reboots, and brings me to the screen to save/discard the session that was running before it crashed.
It does not crash at the point that it calls getGeometry(). My App isn't doing "anything" at the point that it reboots the device. It is just waiting for a button to be pushed.
This is on Fenix3 v4.60. getGeometry() does not work on the simulator so I cannot test it there.
The result I get from getGeometry is not persistent. The handling is with local variables that are gone when onUpdate() is done.
I've been adding and removing code to try different scenario's. In the end it comes down to the getGeometry() call. If I call it with 8K free the device crashes a bit later.
Anybody seen this before? I wanted to use getGeometry in my program but if it crashes the device I won't.
Kind Regards,
WG