On Tue, Jan 17, 2012 at 8:56 AM, Carsten Haitzler <ras...@rasterman.com> wrote: > On Fri, 6 Jan 2012 12:34:43 -0200 Gustavo Sverzut Barbieri > <barbi...@profusion.mobi> said: > > finally i'm getting around to this thread... > > one thing i don't like is passing in all the funcs as params. we did this with > smart class. we abandoned it. > > BUt we should have a elm_genlist_itc_new() (and free()). > > why? 1. refcounting, 2. handling initializing the struct all to null/0 AND > setting a version. (yes we can do it with static/const structs and app sets > version so we know struct size base don version num... BUT that doesn't solve > the core problem here)...
I've explained this already, you can't convince me. I'm repeating again: adding this is asking for trouble, you'll have people to do even more mess. > and the CORE problem is... dlclose(). your object has been deleted. done - u > dlclose the module it came from.. CRASH. the struct for item class just was > ripped out of memory. almost everything else allows the module to remove > callbacks and anything that may be called... EXCEPT for this. here the class > must stay around in memory - the module can fill func ptr's with NULL to make > it save (and make it do nothing) but the class struct must live. i'll send my > feedback to hyoyoung's mail. :) Oh nice! And in what realistic program the pointers stored in this struct are not in the dlopen()ed part? Huh? Then you don't crash on the struct, but on the symbol! :-( If you're resetting, just remove the items using it. Same effort. Cleaner. Anyway, you can't convince me, I can't convince you. You'll get it in and help genlist become worse than it already is... I'm giving up on genlist and if I really care I can try to provide something external that does its job and works for me. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel