Heap size with KeyPad Widget - excessivly large
I have a pretty large graphics design going with many different screens.
One of the screens I created is to allow editing of a field by an end user.
This screen in total has:
1 panel (size of the entire screen)
1 text field
2 Buttons (Save Value Button, and Cancel Button)
The keypad widget is setup to have 40 keys (the values 0-9, and all Alpha characters A-Z, A backspace key, and A clear key)
Looking at the Heap estimator, this keypad widget requires 143536 bytes of Heap alone.
Most of the screens that I have are way more complicated than this screen and are still under 10k of heap size.
I have other screens that are similar, but only allow the user to enter numbers, so the number of keys on those screens is 12 (0-9, backspace, clear) - and the heap for these keypads is still about 43k.
Does anyone know why the keypad widget requires so much heap?
And is there anything that I can do (other than write my own key handler in my source code) to reduce the amount of heap needed?
I'm using the latest compiler, harmony, etc as of this posting date - XC32 v2.10 Harmony v2.06