From murdoch.duncan at gmail.com  Wed Aug 10 14:07:58 2011
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Wed, 10 Aug 2011 08:07:58 -0400
Subject: [Rd] Win7 x64 "device not ready" error when DLLpath passed to
 dyn.load
In-Reply-To: <CAOQ5NyfOqE2rEc5j3U7WEZzqjz3tgfqueguz3yDf0fgp-Kgqhw@mail.gmail.com>
References: <CAOQ5NyfOqE2rEc5j3U7WEZzqjz3tgfqueguz3yDf0fgp-Kgqhw@mail.gmail.com>
Message-ID: <4E42749E.4020905@gmail.com>

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



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