[R] Is this a bug?
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Wed Sep 6 10:15:10 CEST 2000
On Tue, 5 Sep 2000, Yves Gauvreau wrote:
> Hi,
>
> I noticed a particular behavior in the following situation on:
>
> platform Windows
> arch x86
> os Win32
> system x86, Win32
> status
> major 1
> minor 1.0
> year 2000
> month June
> day 15
> language R
>
>
> I've created a DLL from a Fortran source and a R function to call it. Every
> thing went fine. Then I
> noticed while testing the function that I had forgotten something, so I
> unloaded the DLL, made the modifications to the Fortran source, recompiled,
> reload and retest. This caused R to crash, so I restarted R (GUI) and made
> another attempt to test the function and it work fine. It looks like
> something is wrong maybe with dyn.unload or whatever. I tried something
> similar with C source and the same thing appends. Is it R or Windows NT the
> culprit?
There are a couple of bugs in the symbol caching logic in dyn.unload,
especially when PACKAGE= is not used (when cached symbols from the DLL are
never forgotten). If you undef CACHE_DLL_SYMS in dynload.c and rebuild R
the problem should go away.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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