[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
opening and closing a stream
- To: email@example.com
- Subject: opening and closing a stream
- From: res <firstname.lastname@example.org>
- Date: Mon, 24 Aug 1992 11:10:35 -0400
- Original-received: by NeXT Mailer (1.63)
- Pp-warning: Illegal Received field on preceding line
I am working on a multi-frame application under CLIM 1.1 where I want
to send debug output to a window or to a file depending on user
(define-simac-command (com-debug-to-file ...
(setf *debug-stream* (open (pathname "debug") :direction :output))
(define-simac-command (com-debug-off ...
The application opens then a file for output and should write all
debug output to it, but nothing happens! The file is opened, the
variable *debug-stream* holds the file handle but no output is
written. Additionally the file cannot be closed later on by a close
statement from within the application. Only the "Close File" command
from the Listener leads to a closing of the stream.
I can't use "with-open-file" as the debug output doesn't happen
within one function.
Forschungszentrum Informatik FZI
Dept. Technical Expert Systems and Robotics
D-7500 Karlsruhe GERMANY