Re: [R] Building DLL file from fortran

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [R] Building DLL file from fortran
From: Guido Masarotto (guido@sirio.stat.unipd.it)
Date: Wed 28 Jun 2000 - 21:44:08 EST


Message-ID: <20000628134408.B7950@sirio.stat.unipd.it>

On Mon, Jun 26, 2000 at 11:26:52AM +0100, Agus Salim wrote:
> Hi!
> I made a DLL from fortran source code using MAKE command
> (I am working with R 1.0.0 under windows 98). But when I tried
> to call the wrapper function from inside R, it gave me the
> following error message:
> could anybody advise me?
>
> RGUI caused an invalid page fault in
> module RAINFALL.DLL at 015f:0619110e.

  Without more details (compiler and source used to build RAINFALL.DLL)
  it is difficult to give help.
  Some things to check:
  1) has the dll built using the C method to pass arguments on the stack?
  2) does your entrypoint in the dll agree with your wrapper on the
     type of the arguments passed (e.g., I almost always forget to
     coerce to integer the integer arguments).
  3) do the routines in RAINFALL.DLL work? The error is inside
     RAINFALL.DLL and until the .C or .Fortran call return R has
     no control on it (maybe in the future we will wrap this calls
     inside an exception handler so that and error in a packages
     dll will not result in the death of the entire process).

   guido
     
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:24 EST