🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #247879

Re: Dialog: Flush Before Exit?

#247879
From: Bernd Rose
Date: Sat, 31 Dec 2011 09:11
63 lines
4400 bytes
On Fri, 30 Dec 2011 20:51:12 -0600, Sqwertz wrote:

>>> Dialog has been crashing on me more and more lately when it comes time
>>> to "Cleaning up" while exiting (Windows 7 known problem).  
>> 
>> Dunno. Dialog (.41) /never/ crashes on Win7 in my setups. (Several
>> different PC's; Win7x32 as well as Win7x64.)
> 
> It's been mentioned here several times.

Not really. Most mentioned crashes could be traced back to: 
- using the wrong Dialog version (.1 or .84 instead of .41)
- Scripts (best to throw out /all/ scripts and add them one
  after another to sort out possible problems)
- installing into a managed folder (usually %ProgramFiles%)
- copying an installation from different user account and /keeping/
  the rights set to that other user (e.g. copy via NTFS drives)
- broken Dialog database
- failing to give Dialog enough time (a couple of seconds) on Exit
  before shutting down Windows
- trying to interact with "broken" Dialog GUI elements - as can 
  be found on x64 installations, where the "double-zoom" or patch
  workaround(s) are not applied (correctly)
- a virus scanner interfering (Dialog folder and Dialog data folder
  can IMHO safely be excluded from scanning - provided, that all
  attachments are stored elsewhere and attachments from unreliable
  sources are *not* executed from inside Dialog)

What's left are only a few postings (including yours), where most
likely also one of above reasons applies. But where the cause of
the crashes just never was identified correctly. /If/ Windows 7
/really/ were culprit of regular crashes *in itself*, more posts
unrelated to above mentioned reasons would be seen.

>>   ADo('MarkAllGroupsRead');
> 
> I don't want to mark all articles read. 
[...]
> I want to [...] flush the buffers of any unwritten data 

Read/Unread information for any article is saved to disk, whenever
the group loses focus. Therefore, you just need to switch to another
group (maybe back and forth, when you set up Dialog to remember your
last active group) before exiting Dialog. The Counter of unread
messages per group will most likely show a wrong number after a
crash. But once you enter the group, this number will immediately 
be updated.

There's another problem, though: The synchronization information
between server and local database (i.e.: which was the last article
retrieved) is stored only on Dialog exit (groups.idg). If groups.idg
cannot be written because of a crash, headers and/or messages already 
retrieved will be retrieved /again/. (And will again appear unread.) 
This is usually only the case for headers/messages you deleted during
the last session. Although writing of groups.idg /can/ be forced 
within a Dialog session (e.g. by calling <Update Grouplist(s)>), the
server numbers will stay unchanged. Only Dialog exit will cause an
update.

IMHO, you need to sort out the causes of your crashes. Everything
else is just managing the symptoms...

Bernd
Technical Details
Message-ID: <q7zcrxgim4as.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
References: <1nzi5hkykg6kv.dlg@sqwertz.com> <1a2lxmp2b6wxp.dlg@b.rose.tmpbox.news.arcor.de> <arnylr5ywmj5$.dlg@sqwertz.com>

Show Full Headers
Complete Article Headers
Message-ID: <q7zcrxgim4as.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: Dialog: Flush Before Exit?
Date: Sat, 31 Dec 2011 10:11:11 +0100
From: Bernd Rose <b.rose.tmpbox@expires-2011-12-31.arcornews.de>
References: <1nzi5hkykg6kv.dlg@sqwertz.com> <1a2lxmp2b6wxp.dlg@b.rose.tmpbox.news.arcor.de> <arnylr5ywmj5$.dlg@sqwertz.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (4005cddd.158.380)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 63
Organization: Arcor
NNTP-Posting-Date: 31 Dec 2011 10:12:05 CET
NNTP-Posting-Host: 05751373.newsspool4.arcor-online.net
X-Trace: DXC=G5nAaNc>?XEX36K@\WTHGJ4IUK<Cl32<A4Fo<]lROoRA8kF<OcfhCOKiQ_I>W9BHYABYf[Tl<>RjJI2Wg3Qj=P;
 OC_=[0O9AJTE
X-Complaints-To: usenet-abuse@arcor.de
X-Original-Bytes: 4100