s-news
[Top] [All Lists]

assign() in SPLUS 2000

To: s-news@lists.biostat.wustl.edu
Subject: assign() in SPLUS 2000
From: Marco Albani <albanim@interchange.ubc.ca>
Date: Fri, 16 Feb 2001 12:15:07 -0800

Hello,

I have encountered a  problem running scripts in S+ 2000 on Win NT 4.0.

I have a series of lengthy operations that run on large datasets (I estimate overall 6+ hours computing time on my PIII 933 MHz). I built an .ssc file to run them as a sequence of assignment commands, but when I run it S+ takes up more and more memory until it eventually bombs and nothing is committed.

Note that this happend using a series of commands in the form:

   east.dem.nw.7.0 <<- par.map.nw(get("east.dem", immediate = T),7,0)

(where par.map.nw is a function that call a C DLL)

I also tried

assign("east.dem.nw.7.0", par.map.nw(get("east.dem", immediate = T),7,0),immediate=T)

or

dbwrite("d:\\_demconic","east.dem.nw.7.0", par.map.nw(get("east.dem", immediate = T),7,0))

In all cases, following S+ with the NT task manager, I can see that memory is not freed when each operation is concluded, but only when the .ssc file finishes running successfully (in the dbwrite case I don't even seem to be able to find the object with its proper name once it has been written to the attached database).

Any insight?

Cheers




Marco Albani, Ph.D. Candidate
Department of Forest Sciences, University of British Columbia
3rd Floor, Forest Sciences Center
3041 - 2424 Main Mall
Vancouver, BC
Canada V6T 1Z4
Phone (604) 822 8295
FAX (604) 822 9102
http://faculty.forestry.ubc.ca/kimmins/marco/marco.htm


<Prev in Thread] Current Thread [Next in Thread>
  • assign() in SPLUS 2000, Marco Albani <=