[R] DLLs using Borland

Russ Lenth russell-lenth at uiowa.edu
Fri Jan 21 21:40:21 CET 2000


I wrote a DLL in C that does some MCMC stuff.  It is compiled using
Borland's C++ Builder, version 3.0 (build 3.70) on a Windows 98 machine.

The DLL loads and runs just fine.  But then if I subsequently call R's
plot() function, I get an illegal operation message and R crashes.  In
fact, I've found that this happens even if I merely load the DLL, don't
ever run it, and then try to plot something.  I do NOT have this problem
if I load the sample DLL that comes with R, so I know it's a problem
with the way my DLL is built.  The version and the error messages are
below.  

Does anybody have experience with building DLL's with Borland products? 
Or some other compiler -- I have no particular loyalties, I just used
what I had.  Any help would be appreciated.

Russ
-- 
Russell V. Lenth -- Department of Statistics & Actuarial Science
The University of Iowa -- Iowa City, IA 52242  USA
Tel (319)335-0814 -- FAX (319)335-3017
mailto:Russell-Lenth at uiowa.edu - http://www.stat.uiowa.edu/~rlenth/

===== Extra info =====
R : Copyright 1999, The R Development Core Team
Version 0.90.1  (December 15, 1999)

RGUI caused an exception 10H in module CRTDLL.DLL at 016f:7fc49ef3.
Registers:
EAX=00000420 CS=016f EIP=7fc49ef3 EFLGS=00000212
EBX=0253e3d8 SS=0177 ESP=0253e344 EBP=0253e354
ECX=0253e35c DS=0177 ESI=0253e65a FS=56a7
EDX=00000000 ES=0177 EDI=c0000090 GS=0000
Bytes at CS:EIP:
8b 45 08 83 c0 08 f6 00 10 74 03 80 23 fe f6 00 
Stack dump:
00000008 0253e642 0253e65a 0253e642 0253e3dc 7fc4a684 0253e380 0253e3d8
00000008 0000001b 0253e64a 0253e65a 0253e652 0253e6e0 7fc52e76 04660360 
=====
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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