[R-pkg-devel] Unable to load Windows NETIO.SYS and WINSPOOL.DRV DLLs
On Sat, 11 Feb 2023 11:19:42 +0000
David Sterratt <David.C.Sterratt at ed.ac.uk> wrote:
WinDbg output reveals errors loading "NETIO.SYS" and "WINSPOOL.DRV" when running "library(RGtk2)": 0c64:0640 @ 44312812 - LdrpProcessWork - ERROR: Unable to load DLL: "NETIO.SYS", Parent Module: "C:\Users\David Sterratt\AppData\Local\R\win-library\4.3\RGtk2\libs\x64\RGtk2.dll", Status: 0xc0000135 ... 0c64:1e5c @ 44312812 - LdrpProcessWork - ERROR: Unable to load DLL: "WINSPOOL.DRV", Parent Module: "C:\Users\David Sterratt\AppData\Local\R\win-library\4.3\RGtk2\libs\x64\RGtk2.dll", Status: 0xc0000135
The failure to load WINSPOOL.DRV is perplexing (it should normally be possible to load as it's a system DLL that applications are supposed to link against in order to be able to print), but NETIO.SYS should probably be absent from the import list. At least it seems to be linked against some kernel-related stuff that shouldn't be reachable from userspace applications. By removing -lnetio from PKG_LIBS, I was able to load the package and run some example code from the JSS article, but then Rgui.exe crashed on exit. I'm running R-4.2.2 and Rtools43 on a Windows 7 machine, which could also be a source of the difference. Does the Dependency Walker <https://dependencywalker.com/> provide you any useful information about the package DLL besides what you already know? (Some warnings deep in the dependency tree are to be expected. R.DLL is not on the PATH so won't be automatically found, but other dependencies should exist.)
Best regards, Ivan -------------- next part -------------- A non-text attachment was scrubbed... Name: jss-example-working.png Type: image/png Size: 10880 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20230211/9d715e79/attachment.png>