Carsten Haitzler <[EMAIL PROTECTED]> [2004-07-07 07:14]: > > as some of you might know, I'm currently working on Ruby bindings for > > EFL (ecore, evas, edje atm). > > > > One problem I found is that Ruby's garbage collector doesn't work too > > well with our $lib_shutdown() functions, which makes ecore/evas spank me > > badly :) > > aah - you will HAVE to solve this. those messages are ecore/evas/etc. AVOIDING > what would normally be a segv. you have a pointer STILL to memory - it may be > NULL which makes it easy to detect and avoid - it will always be safe, but often > [snip]
Yeah, I'm aware of that. I'd only want to suppress the "handle already freed" messages, since they can only occur on ONE occasion with the Ruby bindings and I know it's safe to ignore these. I think :)) > > In my case, these warning messages can be safely ignored, Ruby users > > shouldn't see them. > > > > I guess the most simple way to do this is with the attached patch. > > > > Comments? If nobody objects, I'll put this in CVS in a few days (and > > I'll do the same to evas, too). > > noooo - fix the bugs - the problem is how to interact with ruby's GC safely - ie > defer a shutdown until the GC has finished up. maybe you should add a resource > counter per system and whenever ruby's gc frees something decrement and only > shutdown THEN (also respecting init order - you should shut down in the revers > order you initted) :) Yeah, I know it's somewhat evil to suppress ecore's warnings, but calling $lib_init and $lib_shutdown in every (de)constructor doesn't sound appealing either. I'll think about it again, though ;) -- Regards, Tilman ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ enlightenment-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
