home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / PROG / MISC / XLSP21TC.ZIP / XL-001.BUG / text0000.txt < prev    next >
Encoding:
Text File  |  1991-04-14  |  1.7 KB  |  44 lines

  1. In article <3468@hplabsz.HPL.HP.COM> mayer@hplabs.hp.com (Niels Mayer) writes:
  2. >It looks like garbage collection is trashing a pointer somewhere when using
  3. >make-string-input-stream running read-char on that stream. After doing a
  4. >bunch of read-chars on that stream, I get an "error: bad stream" message.
  5. >This happens more often right after you start up xlisp, and less frequently
  6. >upon subsequent garbage collections.
  7.  
  8. Someone inside HP kindly mailed me an archive of the last year of
  9. comp.lang.lisp.x, and inside that archive, I found the following fix:
  10.  
  11.      Note 58       two bugs with unnamed streams in xlisp 2.0
  12.      nikkie@dutesta.UUCP (Paul A.W. van Niekerk)   7:13 am  Dec 16, 1988
  13.      
  14.      I discovered two bugs in my copy of xlisp 2.0 concerning unnamed streams.
  15.      The bugs + fixes follow.
  16.      
  17.      1. Unnamed streams never survive a garbage collection.
  18.         Fix: in xldmem.c change in function mark the line:
  19.            if ((type = ntype(this)) == CONS) {
  20.         to
  21.            if ((type = ntype(this)) == CONS || type == USTREAM) {
  22.      
  23.      2. (format nil ...) does not protect the unnamed stream it creates, it will
  24.         vanish during a GC.
  25.         Fix: in xlfio.c add to function xformat the lines:
  26.            xlsave1(val);
  27.            ...
  28.            xlpop();
  29.      
  30.      Now USTREAMS seem to work fine.
  31.      Paul van Niekerk.
  32.      --
  33.      Paul A.W. van Niekerk                 |  All standard
  34.      Delft University of Technology        |  disclaimers apply ...
  35.  
  36. -------------------------------------------------------------------------------
  37.         Niels Mayer -- hplabs!mayer -- mayer@hplabs.hp.com
  38.           Human-Computer Interaction Department
  39.                Hewlett-Packard Laboratories
  40.                   Palo Alto, CA.
  41.                    *
  42.  
  43.  
  44.