Hi all,
I am utilizing the MAUIex example. But as soon as I add a new font, I got error below when running the app.:
"Malloc failed. You most likely run out of heap memory. Try to increase the heap size."
I added a second font such as below:
****************************
MyMoblet::MyMoblet() {
gFont = new MAUI::Font(RES_FONT);
gFont_Orange = new MAUI::Font(RES_FONT_ORANGE);
.....
****************************
Each font itself works fine alone. But I canot see to add have two of them together.
I tried the suggestions to increase the heap to double or triple the default, but it doesn't help.
This same problem happened when I tried to add my my own skin (see below).
*********************
gSkin = new WidgetSkin(RES_SELECTED, RES_UNSELECTED, 16, 32, 16, 32, true, true);
gMenuSkin = new WidgetSkin(RES_MENU_SELECTED, RES_MENU_UNSELECTED, 16, 32, 16, 32, true, true);
*********************
Same story, i.e., each "skin" works fine by its own, but not together. But for this one, if I add more skins using the BubbleChat List box example (http://www.mosync.com/content/bubble-chat-listbox). The problem disaappears, thus it wasn't a heap size problem (since I now have more objects).
I guess I must be doing something wrong. Can anyone shed some light?
Thank you.