s-news
[Top] [All Lists]

[S] dll.load and Digital Visual Fortran

To: s-news@wubios.wustl.edu, Matt Calder <calder@stat.colostate.edu>
Subject: [S] dll.load and Digital Visual Fortran
From: John Nolan <JPNOLAN@american.edu>
Date: Thu, 23 Jul 98 15:48:33 EDT
Organization: Math/Stat Department, American University
Sender: owner-s-news@wubios.wustl.edu
I have developed some Fortran code using Digital Visual Fortran,
which uses the Microsoft Developers Studio IDE.  You can produce
a 32-bit DLL with that compiler and link to it from S-Plus 4.5 on
a PC running Win95 (and presumably Win98, WinNT).  But I've
still got two problems:

1. I have the DLL working on one PC (stand alone/not on a network
with 64 MB RAM), but can not get it to run on another PC (again
a Pentium PC, but with 32 MB RAM and connected to our ethernet).
Specifically, when I do the dll.load("file") on the second PC,
I get an error return of:
   -32: System is out of memory, or relocations were invalid.
The exact same DLL and dll.load command works on machine
one, but not on machine two.  I cranked up the virtual memory
on the second PC, thinking it would solve the problem, but it
does not.

Is this really a problem with not having enough physical memory,
or what does a "relocation invalid" mean?  Is it related to the
second machine running Novell network??

2.  On machine one where the DLL works, every time I exit S-plus,
I now get an error and the debugger in Digital Visual Fortran
starts up, giving me a debug window and the assembler code of
the splus executable.  This now happens every time I run
S-Plus, whether I do a dll.load followed by a dll.unload,
or dll.load with a dll.unload, or even without doing a dll.load.

It seems that S-Plus now permanently knows about the debugger
built into MicroSoft Developer Studio.  This never occurred until
I started doing dll.load's recently.

I'd appreciate ideas on either of these problems.
The first problem is a real block for me, the second is just an
annoying 1 minute delay every time I exit S-Plus (the debugger
takes a while to fire up, load files, then I have to reply to
3 pop-ups to get out.)

John Nolan

............................................................
 John P. Nolan
 Math/Stat Department          e-mail address:
 American University              jpnolan@american.edu
 4400 Massachusetts Ave, NW    phone: 202-885-3140
 Washington, DC  20016  USA    FAX:   202-885-3155

          WWW: http://www.cas.american.edu/~jpnolan
............................................................
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>