[R] error message %1 is not a valid Win32 application.

Duncan Murdoch murdoch.duncan at gmail.com
Fri May 27 03:47:32 CEST 2011


On 11-05-26 9:39 PM, sivan aldor wrote:
> The file was copied properly, My instinct is the problem has to do with
> the OS but I want to see if there is a way to resolve this.

Sounds like you have to take it up with the OS manufacturer then.

Duncan Murdoch

>
>
> On Thu, May 26, 2011 at 9:35 PM, Duncan Murdoch
> <murdoch.duncan at gmail.com <mailto:murdoch.duncan at gmail.com>> wrote:
>
>     On 11-05-26 9:11 PM, sivan aldor wrote:
>
>         I ran the exact command this morning on a friend's computer which is
>         32bit and it worked!
>         I am now running it from a different computer. As far as I can
>         tell the
>         only difference is that his OS is VISTA and mine is Windows 7.
>         Can that
>         really be the problem?!?!
>
>
>     What makes you think the file got copied properly to the different
>     computer?
>
>     By the way, I've looked at the code, and it doesn't appear to be
>     worth the trouble to replace that %1, because dyn.load() is
>     platform-neutral, while the message only has that format in Windows.
>       The full error message (which it would have helped if you'd shown)
>     is something like:
>
>       unable to load shared object 'D:/stuff/junk.dll':
>       LoadLibrary failure:  %1 is not a valid Win32 application.
>
>     The %1 is just the file listed on the previous line.
>
>     Duncan Murdoch
>
>
>         On Thu, May 26, 2011 at 9:05 PM, Duncan Murdoch
>         <murdoch.duncan at gmail.com <mailto:murdoch.duncan at gmail.com>
>         <mailto:murdoch.duncan at gmail.com
>         <mailto:murdoch.duncan at gmail.com>>> wrote:
>
>             On 11-05-26 8:42 PM, sivan aldor wrote:
>
>                   The only command I am using is
>                 dyn.load("dbsvls.dll")
>
>
>             Okay, I get the error message you showed if I try to load
>         something
>             that really isn't a valid Win32 dll, and I don't get it when
>         I load
>             a valid one.  (I'm not sure if I can fix it to replace the
>         %1 with
>             the filename; I'll look into that.)  How do you know your
>         dbsvls.dll
>             really is valid?
>
>             Duncan Murdoch
>
>
>
>
>
>                 On Thu, May 26, 2011 at 8:41 PM, Duncan Murdoch
>         <murdoch.duncan at gmail.com <mailto:murdoch.duncan at gmail.com>
>         <mailto:murdoch.duncan at gmail.com <mailto:murdoch.duncan at gmail.com>>
>         <mailto:murdoch.duncan at gmail.com <mailto:murdoch.duncan at gmail.com>
>         <mailto:murdoch.duncan at gmail.com
>         <mailto:murdoch.duncan at gmail.com>>>> wrote:
>
>                     On 11-05-26 4:53 PM, sivan aldor wrote:
>
>                         Hi Everyone,
>                         I am trying to work with a routine that is from
>         the IMSL
>                 called
>                         BSVLS. I
>                         have the file as a .dll file.
>                         I have been trying to call the routine using
>           the dyn.load
>                         function. I am
>                         working on a 32-bit windows 7 OS with 3 GB. For some
>                 reason i
>                         still keep
>                         getting the error message
>
>                         LoadLibrary %1 is not a valid Win32 application
>
>                         I looked at previous posting and they were all
>         related
>                 to people
>                         trying to
>                         run dll files that was created under 64bit and
>         not under
>                 32bit.
>                         But I am
>                         running it on the correct settings.
>
>                         I have placed the .dll file in the BIN folder so
>         R can
>                 find it.
>
>                         Any thoughts? ideas on how I should handle this?
>
>
>                     Why don't you tell us what you did?
>
>                     Duncan Murdoch
>
>
>
>
>
>



More information about the R-help mailing list