[R] Building DLL file from fortran

Guido Masarotto guido at sirio.stat.unipd.it
Wed Jun 28 13:44:08 CEST 2000

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).

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 at stat.math.ethz.ch

More information about the R-help mailing list