Ok, thanks all for your answers.
Works fine with a global init() and shutdown() in main app.
This hasn't been done before 'cause somme apps were old and never 
migrated to EFL. That's done now, so no more an issue here.

Thx again for your help !


On 22/10/2012 15:25, Cedric BAIL wrote:
> Cedric Bail
> On Oct 22, 2012 9:55 PM, "Tom Hacohen" <tom.haco...@samsung.com> wrote:
>> On 22/10/12 14:48, Tom Hacohen wrote:
>>> On 22/10/12 14:36, Pierre-Olivier Huguet wrote:
>>>> Hi all,
>>>>
>>>> I have a program which uses partially ecore_main_loop; it runs several
>>>> tasks like this :
>>>>
>>>> eina_init();
>>>> ecore_ini();
>>>> ecore_con_init();
>>>> ecore_con_url_init();
>>>>
>>>> [do some stuff]
>>>> ecore_main_loop_begin();
>>>>
>>>> ecore_con_url_shutdown();
>>>> ecore_con_shutdown();
>>>> ecore_shutdown();
>>>> eina_shutdown();
>>>>
>>>> (I know that the whole program should be running in ecore_main_loop and
>>>> we shouldn't make successive init / shutdown like that, but that's not
>>>> possible right now)
>>>>
>>>> Since eo, this program fails on the 2nd task with init / main loop /
>>>> shutdown, while it used to run fine.
>>>>
>>>> See attached sample program (always fails on 2nd loop and then is
>>>> stucked in the main loop)
>>>>
>>>> Can someone take a look at this ?
>>>> Thx !
>>> This behaviour is not supported, at least that's what I remember from
>>> past discussions. I know for a fact I ignored this case when doing Eo.
>>> As for your situation, if possible, consider wrapping your main
>>> application with init/shutdown, so you won't have to change the other
>>> pieces of code, and everything will just work.
>> A bit more clarifications: This is not supported by design. It could be
>> made to work, but it unnecessarily complicates things and from what I
>> raster and I have discussed in the past, it's not a supported case, and
>> we should not jump through loops in order to make it work.
> This was supported in the past, there was some bug to fix, but a cycle of
> init and shutdown should work, or we could just remove shutdown !
>
> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>> _______________________________________________
>> enlightenment-devel mailing list
>> enlightenment-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to