Hello.  

I have a question related with ecore_init/ecore_shutdown.  

ecore_init called ecore_pipe_add.  
but ecore_shutdown didn't call ecore_pipe_del because of dealing with writing 
of onother thread.  

This makes problem if application called ecore_init/ecore_shutdown several 
times in application life time.  
It will increse fd number until file open fail.  

Is there some method to solve this bug or guide for application?  
this is known bug.  

If somebody have good method to solve or avoid this problem, please let me know 
it  
thank you.  

I attached sample code.  


------ Jiyoun Park (jypark) ---------  

/*
gcc `pkg-config --cflags --libs ecore ecore-evas evas` t.c -o hello
gcc -g -o scale_test t.c `pkg-config --cflags evas ecore ecore-evas` 
`pkg-config --libs evas ecore ecore-evas`
Usage: ./hello [File_name]
*/
#include <ecore-1/Ecore.h>
#include <ecore-1/Ecore_Evas.h>
#include <evas-1/Evas.h>
// also can just #inlcude <Elementary.h>
// and use elm instead

// IGNORE the XXX: comments. for me only for follow-up
// 
// XXX:also buffer canvas doesnt update FULL map region on updates to image obj
#include<Evas.h>
#include<Ecore_Evas.h>
int main(int argc, char** argv)
{
   int width = -1, height = -1;
   char path[1024] = {0,}; 

   while(1) {
        printf("Enter path : ");
        scanf("%s", path);
        ecore_evas_init();
        Ecore_Evas   *ee = ecore_evas_buffer_new(1024, 768);
        if (!ee)
          {
             printf("ecore_evas_new fails\n");
             return -1 ;
          }
        Evas* evas = ecore_evas_get(ee);
        if (!evas) 
          {
             printf("ecore_evas_get fails\n");
             ecore_evas_free(ee);
             return -1 ;
          }
        Evas_Object* image_object = evas_object_image_add(evas);
        if (!image_object)
          {
             printf("evas_object_image_add fails\n");
             ecore_evas_free(ee);
             return -1 ;
          }

        evas_object_image_file_set(image_object, path, NULL);
        evas_object_image_size_get(image_object, &width, &height);  
        printf("Width:%d, Height:%d\n", width,height);

        ecore_evas_free(ee);
        ecore_evas_shutdown();
   }

   return 0;
}

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to