Active Memory - Application Data

Hello, this is most likely a very basic question, but I did not find a good answer.

What exactly are the "Application Data" in the Active Memory window? I understand the Application Code - that's the source code (converted for the device) plus the code generated from the layouts together.

But why do I have a 25 kB of the application data in my app? In the persistent storage (AppBase, Storage) I have just a few strings. I tried to remove my bitmaps from the bitmaps.xml, it did not change much. Also I tried to remove strings from the strings.xml, but also without any significant difference. This project is for Edge 520 (SDK 2.4.0), but it's similar also for the SDK 3.0.x

Thank you

  • I think most of mine comes from every declaration of var, const, enum or function in classes - maybe 10 to 20 bytes for each one? I seem to have about 7k of Data.

    For about 140 variables and 80 functions.

    Which probably doesn't add up to 7k. So, I'm not sure where the rest of it comes from.

  • Former Member
    Former Member over 6 years ago

    The Application Data section contains all the Read-Only memory that is part of your application that isn't instructions.  This includes things like class definitions, and hard coded strings. You can mostly consider this to be part of your code just like the Application Code section, but instructions and data are split into separate sections. They are similar to the text and data sections described here:
    https://en.wikipedia.org/wiki/Data_segment#Program_memory