About Store Forum Documentation Contact



Post Reply 
Memory leak when resizing app
Author Message
MrPi Offline
Member

Post: #1
Memory leak when resizing app
I was checking the memory consumption of my app and found out that the allocated memory constantly increases with each resizing of the application window. To make sure it wasn't something in my code, I used the "17 - Chatbox" tutorial sample and just made these changes:

PHP Code:
void ScreenChanged(Flt old_widthFlt old_height)
{
   
}

void InitPre()
{
   
EE_INIT();
   
   
App.flag APP_MINIMIZABLE|APP_MAXIMIZABLE|APP_RESIZABLE|APP_FULL_TOGGLE|APP_KB_EXCLUSIVE|APP_NO_PAUSE_ON_WINDOW_MOVE_SIZE;
   
App.flag |= APP_AUTO_FREE_OPEN_GL_ES_DATA|APP_AUTO_FREE_PHYS_BODY_HELPER_DATA|APP_AUTO_PARTICLES_CONVERT_BLEND;
#ifdef DESKTOP
   
App.flag|=APP_WORK_IN_BACKGROUND;
#endif

   
D.aspectMode(ASPECT_Y);
   
D.screen_changed ScreenChanged;


I then often resized the application window and saw the memory climb up.
12-20-2013 12:49 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Memory leak when resizing app
Hi,

Did you use APP_MEM_LEAKS on windows to actually verify any memory leaks?
12-20-2013 09:17 PM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #3
RE: Memory leak when resizing app
No I didn't. I just watched it in task manager. You can easily try to reproduce it with the changes to the Chatbox sample that I provided. It's not critical for me, just reporting it.
12-20-2013 10:42 PM
Find all posts by this user Quote this message in a reply
Post Reply