On Wed, Jan 19, 2011 at 3:00 AM, Carsten Haitzler <ras...@rasterman.com> wrote: > On Thu, 13 Jan 2011 11:35:10 +0900 WooHyun Jung <wh0705.j...@samsung.com> > said: > >> Hello. I'm WooHyun Jung. >> >> One question about not calling elm_mod_shutdown in elm.c (in >> edje_externals). >> >> I've tested with elementary_test and I checked elm_mod_init is called when >> initiating. >> >> But elm_mode_shutdown was not called when elementary_test is terminated. >> >> By this situation elm_init is called twice but elm_shutdown is called just >> once. >> >> Can anybody check about this ? > > partly a design problem with externals and layering (that cant get fixed > without a total rethink of the whole externals thing), and partly an > implementation issue of ALWAYs dumbly initting elm from the externals module > when it's initted (as opposed to used) thus incrementing ref count for init > for > elm and thus never making elm_shutdown work because it keeps the init count > (as > module shutdown doesnt get called because edje is not shut down because of the > extra init ref). i made it ref and unref per object instead so it gets called > now.
it could just be initialized when you query modules or when the module is used. The former should just be used by editors such as Editje anyway, so not a problem. The later is the regular use, and makes sense to initialize it. an alternative, but that I dislike, is to have another callback you call for modules you want to use. or do as you did with elm that init/shutdown as things are used from the module. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel