Re: boxed re-registration key freeing

On Jan 27, 2009, at 5:58 PM, Kevin Ryde wrote:

Chasing it down in gdb it looks like Gtk2.xs register.xsh registers Gtk2::Border with gperl_register_boxed, and then the Gtk2::Entry boot code re-registers it.


Is GtkEntry.xs meant to register Gtk2::Border, or can it be left to register.xsh?

The idea is that the maps file defines the class and mapping and all that, and then we override the registration to provide a different wrapper class.

It looks like gperl_boxed_register() takes precautions to insert into the hash with the destructor second, to avoid this sort of problem. Why isn't that working?

One, two, free, four, five, six, sebben, eight, nine, ten, elebben, twull, fourteen, sickteen, sebbenteen, eightteen, elebbenteen, fiffeen, elebbenteen!
  -- Zella, aged three, counting to twenty.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]