From schwarte@feat.mathematik.uni-essen.de  Fri Jun 27 20:46:40 1997
From: schwarte@feat.mathematik.uni-essen.de (Heiner Schwarte)
Date: Fri, 27 Jun 1997 20:46:40 +0100 (NFT)
Subject: R-alpha: Re: Problem with gc()
In-Reply-To: <Pine.A32.3.93.970626153101.3426A-100000@feat.mathematik.uni-essen.de>
Message-ID: <Pine.A32.3.93.970627203823.15230B-100000@feat.mathematik.uni-essen.de>

Yesterday I posted a problem with logical() after a gc().

This problem occurs because do_makevector() in the file
builtin.c does not properly initialize the memory if a 
vector of logicals is manufactured. Simply adding an 
initialization  loop solves the problem. ( Following 
line 333 one finds  the initialization for INTSXP and 
REALSXP. Add one for LGLSXP.)

Heiner

  

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel 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-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: Re: Problem with gc()
Heiner Schwarte