Path: news.mathworks.com!not-for-mail
From: "Todd Welti" <twelti@harman.com>
Newsgroups: comp.soft-sys.matlab
Subject: Diary quirkyness
Date: Wed, 11 Mar 2009 23:59:02 +0000 (UTC)
Organization: Harman Industries International
Lines: 1
Message-ID: <gp9j86$i4r$1@fred.mathworks.com>
Reply-To: "Todd Welti" <twelti@harman.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1236815942 18587 172.30.248.35 (11 Mar 2009 23:59:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 11 Mar 2009 23:59:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 57524
Xref: news.mathworks.com comp.soft-sys.matlab:524189


I have some code that uses "diary" near the start to make a log file.  I had checked it early on and it seemed to work fine.  now though i notice that sometimes the file is empty, if the code encounters errors and quits.  Does diary wait until its associated mfile is finished to write to the diary file?  I tested this by putting in a breakpoint after the diary file was created and some text was displayed in the console, but before the main mfile had finished.  i saw the diary .txt file, but nothing in it.  perhaps it slows down execution if each text line in the console is written to the diary file realitme.  Perhaps there is a buffer...?