http://www.perlmonks.org?node_id=1007441


in reply to Re^12: if Digest::SHA1 loaded Can't load LibXML/LibXML.dll Invalid access to memory location
in thread if Digest::SHA1 loaded Can't load LibXML/LibXML.dll Invalid access to memory location

Win32::LoadLibrary returns a handle for both

Yep - just checked, and Win32::LoadLibrary loads them both just fine for me, too.
Which means ... what ... it's a DynaLoader bug ?

For my check, I ran this script (as per the one you posted earlier in this thread):
use warnings; use strict; use Win32; my $ret = Win32::LoadLibrary('C:\sisyphusion\PLplot_broken.dll'); print "ret=$ret glr=".Win32::GetLastError()."\n"; $ret = Win32::LoadLibrary('C:\sisyphusion\PLplot_ok.dll'); print "ret=$ret glr=".Win32::GetLastError()."\n";
and that produced the following output:
ret=1647050752 glr=0 ret=1659895808 glr=0
It's not just 5.8.9 where this happens, but also 5.8.8, 5.14.0. 5.16.0 (and perhaps other perls as well).

Cheers,
Rob