Re: [E-devel] Memory free questions when using EFL

2019-12-03 Thread Carsten Haitzler
On Tue, 3 Dec 2019 19:52:10 +0800 (CST) Jing said: Output from smem every few seconds (about every 5 seconds or so per line). The numbers at the end of the line are USS, PSS, RSS: $ while [ 1 ]; do smem | grep edje-anchors; done 12153 raster ./edje-anchors 0 3576

Re: [E-devel] Memory free questions when using EFL

2019-12-03 Thread Carsten Haitzler
On Tue, 3 Dec 2019 10:03:55 +0800 (CST) Jing said: > Hi Carsten, > You can put these files into efl-1.21.1/src/examples/edje, and use below > command to complile. edje_cc -beta edje-anchors.edc animations.edc ; > gcc -o edje-anchors edje-anchors.c `pkg-config --libs --cflags evas ecore >

Re: [E-devel] Memory free questions when using EFL

2019-12-02 Thread Carsten Haitzler
On Mon, 2 Dec 2019 20:23:08 +0800 (CST) Jing said: > Hi Carsten, > Please find attached efl demo, i press key "a" to call edje_object_add(obj) > and edje_object_file_set(obj, animations.edj, group), and then press key > "d" to evas_object_del(obj), repeat press "a" and "b" several times,

Re: [E-devel] Memory free questions when using EFL

2019-12-02 Thread Carsten Haitzler
On Mon, 2 Dec 2019 16:11:32 +0800 (CST) Jing said: > Hi Carsten, > Currently, when enter a layout , my program will use edje_object_add() to > add an object, and then use edje_object_file_set() to define the layout by > EDC file, the object will saved into stack, when exit from the layout,

Re: [E-devel] Memory free questions when using EFL

2019-12-02 Thread Jing
Hi Carsten, Currently, when enter a layout , my program will use edje_object_add() to add an object, and then use edje_object_file_set() to define the layout by EDC file, the object will saved into stack, when exit from the layout, then will use evas_object_del() to delete the object. A same

Re: [E-devel] Memory free questions when using EFL

2019-11-29 Thread Carsten Haitzler
On Fri, 29 Nov 2019 09:10:05 +0800 (CST) Jing said: > OK, Carsten, please help to check my code flow, Is there anything wrong? > Please advise, thanks. there is nothing wrong with it. hiding isn't needed as deletion already hides... it might be smarter to show after you have moved and resized

Re: [E-devel] Memory free questions when using EFL

2019-11-28 Thread Jing
OK, Carsten, please help to check my code flow, Is there anything wrong? Please advise, thanks. 在 2019-11-29 05:16:23,"Carsten Haitzler" 写道: >On Thu, 28 Nov 2019 20:14:53 +0800 (CST) Jing said: > >> Thanks Carsten, >> >> >> I did not find edje_object_del(), did you mean evas_object_del()?

Re: [E-devel] Memory free questions when using EFL

2019-11-28 Thread Carsten Haitzler
On Thu, 28 Nov 2019 20:14:53 +0800 (CST) Jing said: > Thanks Carsten, > > > I did not find edje_object_del(), did you mean evas_object_del()? sorry - my typo. evas_object_del(); > Here is my code flow: > //enter: > obj = edje_object_add(evas) > edje_object_file_set(obj, file , grup) >

Re: [E-devel] Memory free questions when using EFL

2019-11-28 Thread michael bouchaud
Yes he means evas_object_del as edje_object_add return an Evas_Object pointer. And edje_object_del doesn't exists as it's an evas_object. :) Le jeu. 28 nov. 2019 à 13:15, Jing a écrit : > Thanks Carsten, > > > I did not find edje_object_del(), did you mean evas_object_del()? > > > Here is my

Re: [E-devel] Memory free questions when using EFL

2019-11-28 Thread Jing
Thanks Carsten, I did not find edje_object_del(), did you mean evas_object_del()? Here is my code flow: //enter: obj = edje_object_add(evas) edje_object_file_set(obj, file , grup) evas_object_show(obj ) evas_object_move() evas_object_resize() evas_object_focus_set() evas_object_layer_set()

Re: [E-devel] Memory free questions when using EFL

2019-11-28 Thread The Rasterman
On Thu, 28 Nov 2019 15:43:17 +0800 (CST) Jing said: > Thanks Hermet for you reply. > > > In my test, i find that if i call function edje_object_file_set(Edje_Object > *obj, const char *file, const char *group), even i call > evas_object_del(Edje_Object *obj); to delete the obj, the memory of

Re: [E-devel] Memory free questions when using EFL

2019-11-27 Thread Jing
Thanks Hermet for you reply. In my test, i find that if i call function edje_object_file_set(Edje_Object *obj, const char *file, const char *group), even i call evas_object_del(Edje_Object *obj); to delete the obj, the memory of my program will keep growing, if i am not use

Re: [E-devel] Memory free questions when using EFL

2019-11-25 Thread Hermet Park
Once object is deleted, the subsequent memory belonging to the object will be removed as well. You don't need to care about it. Callbacks neither. On Mon, Nov 25, 2019 at 9:12 PM Jing wrote: > Hi all, > I have some memory free questions when using below two functions: > > > 1. EAPI Eina_Bool