Michael Lawrence
2011-Aug-10 11:51 UTC
[Rd] Win7 x64 "device not ready" error when DLLpath passed to dyn.load
Hi, Does anyone have any idea why some installations of 64 bit Windows 7 yields an error like this when passing DLLpath to dyn.load or library.dynam?> library(RGtk2)Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'c:/R/libuser/RGtk2/libs/x64/ RGtk2.dll': LoadLibrary failure: The device is not ready. For now I guess I will fall back to setting the PATH explicitly. Michael [[alternative HTML version deleted]]
Duncan Murdoch
2011-Aug-10 12:07 UTC
[Rd] Win7 x64 "device not ready" error when DLLpath passed to dyn.load
On 11-08-10 7:51 AM, Michael Lawrence wrote:> Hi, > > Does anyone have any idea why some installations of 64 bit Windows 7 yields > an error like this when passing DLLpath to dyn.load or library.dynam? > >> library(RGtk2) > Error in inDL(x, as.logical(local), as.logical(now), ...) : > unable to load shared object 'c:/R/libuser/RGtk2/libs/x64/ > RGtk2.dll': > LoadLibrary failure: The device is not ready. > > For now I guess I will fall back to setting the PATH explicitly.One source of problems like that is interference from anti-virus programs. If they have exclusive access to the DLL to check it for problems, then LoadLibrary won't be able to load it. I don't know if there's a way to avoid this automatically. Duncan Murdoch