Создать ответ 
 
Рейтинг темы:
  • Голосов: 0 - Средняя оценка: 0
  • 1
  • 2
  • 3
  • 4
  • 5
SDL_FreeSurface ?
Автор Сообщение
superdefault Не на форуме
Пользователь
**

Сообщений: 24
Зарегистрирован: 06.01.2011
Рейтинг: 0
Сказал спасибо: 1
Поблагодарили 1 раз(а) в 1 сообщ.
Сообщение: #1
SDL_FreeSurface ?
i still got problems getting my isoBrowser app to work.
at least i made some progress: i am pretty sure now that i fill up the ram with all the button instances i create until the app freezes.

so my question is: how to free up some ram again?
i create buttons and load images into my buttons like:

b = DS.GUI_ButtonCreate(.....);
s = DS.GUI_SurfaceLoad(self.currentpath .. appname .. "/icon.jpg");
DS.GUI_ButtonSetNormalImage(b, s);
...etc...

then i add the button to a container named 'panel' on the screen:
DS.GUI_ContainerAdd(self.apps.panel, b);

this works well.

but i got NO IDEA how to free the ram i used for loading the images.
can anyone point me to the right direction here?
is there a way to "DS.SDL_FreeSurface( s );" somehow ?

"GUI_ContainerRemove" removes the container but doesn't free the ram right?
"GUI_WidgetErase" ?
"GUI_WidgetUpdate" ?

i am lost in endless loops of trial and error. Confused
any help is highly appreciated!!
01.11.2011 12:56
Найти все сообщения Цитировать это сообщение
Создать ответ 


Сообщения в этой теме
SDL_FreeSurface ? - superdefault - 01.11.2011 12:56
RE: SDL_FreeSurface ? - SWAT - 01.11.2011, 13:30
RE: SDL_FreeSurface ? - superdefault - 01.11.2011, 13:40
RE: SDL_FreeSurface ? - superdefault - 01.11.2011, 20:36
RE: SDL_FreeSurface ? - SWAT - 02.11.2011, 07:05
RE: SDL_FreeSurface ? - superdefault - 02.11.2011, 13:20
RE: SDL_FreeSurface ? - SWAT - 03.11.2011, 07:22
RE: SDL_FreeSurface ? - superdefault - 03.11.2011, 19:16
RE: SDL_FreeSurface ? - SWAT - 04.11.2011, 09:16
RE: SDL_FreeSurface ? - superdefault - 06.11.2011, 17:19
RE: SDL_FreeSurface ? - SWAT - 06.11.2011, 19:29
RE: SDL_FreeSurface ? - superdefault - 10.11.2011, 22:43
RE: SDL_FreeSurface ? - SWAT - 11.11.2011, 09:26
RE: SDL_FreeSurface ? - superdefault - 15.11.2011, 13:34
RE: SDL_FreeSurface ? - superdefault - 17.11.2011, 14:22
RE: SDL_FreeSurface ? - SWAT - 17.11.2011, 17:48

Переход:


Пользователи просматривают эту тему: 1 Гость(ей)