Out of memory error

Former Member
Former Member
Hi,

I don't understand the managing of the memory ...
I add errors when putting some System.println , and when removing, I don't have them again.
Unfortunately, this didn't work all the time. I need then to understand it ...
I have memory error, often on this code :

fmt = "" + hours + "h" + minutes.format("%02d");


I try to read this topic https://forums.garmin.com/archive/index.php/t-319811.html or https://forums.garmin.com/archive/index.php/t-214247.html, but it didn't help me, I still don't understand how to manage it.

Thanks
  • Former Member
    Former Member over 8 years ago
    This is not possible to increase the 16kb of the simulator ?
    Because, this is painful those kind of error without a lot of informations for debuggind ...


    You can debug simulating a device with more memory, like the FR735XT
  • You can edit ${SDKROOT}/bin/devices.xml to change the memory_limit value used for a device in the simulator. That should allow you to test each device with more memory (so that it will run), but you'll still have to reduce the memory that is used so it won't crash on a device. Of course you'll want to restore the file again when you're done.

    Travis
  • Former Member
    Former Member over 8 years ago
    ok, thanks Travis and WPWOODJR,
    because, I found in the simulator the 'View memory' that shows the mem by object.
    But if the app crash at start (because there is a peak), this is not possible to analyse ...

    Thanks again.

    Rgds,