On Sat, May 31, 2008 at 02:34:04PM +0200, Roderich Schupp wrote:
> shared library parts). The Gtk Perl bindings (and apparently similar
> things like the Wx bindings) must do something different from
> the average XS module.

Yeah, they load the dlls more than once.  There's no question
that the Gtk2.pm can pick up the gtk2.dll as a hash renamed dll.

The problem comes in when Glib.pm's glib.dll tries to pick it up
also and it's not there under the expected name.  And if you pack
an extra gtk2.dll to the par then the hash-renamed dll gets the
init() and the extra copy doesn't causing crashes.

So it's not "definitely wrong," sorry.  Pretty much any XS module
with cross linkage will have this problem -- at least, that's my
understanding.

In any case, even if it is "definitely wrong," circumnavigating
the hash-renaming seems to fix it, so it's worth not
hash-renaming since there's apparently little to gain from doing
it in the first place.

-Paul

-- 
If riding in an airplane is flying, then riding in a boat is swimming.
85 jumps, 36.0 minutes of freefall, 69.1 freefall miles.

Reply via email to