Re: [Rd] Win7 x64 "device not ready" error when DLLpath passed to dyn.load

From: Duncan Murdoch <>
Date: Wed, 10 Aug 2011 08:07:58 -0400

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 mailing list Received on Wed 10 Aug 2011 - 12:09:50 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 11 Aug 2011 - 07:10:17 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive