🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #247868

Re: Dialog: Flush Before Exit?

#247868
From: Bernd Rose
Date: Tue, 27 Dec 2011 15:11
27 lines
2432 bytes
On Sun, 25 Dec 2011 10:33:50 -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.)

> Is there a function I can call (and appropriate trigger to place it)
> that will at least flush the buffers of articles to be marked as read?
> Usually switching from group to group seems to do this during normal
> operation.  But if I read a large number of posts, and then exit and
> then crash during exit, many of the articles from several different
> groups never get marked permanently as read in the database.

Why would you try to run such a function in an exit routine, if your
problem comes from faulty exits?? Just place

  ADo('MarkAllGroupsRead');

inside the OnStartup script (create it, if it only exists as a stub
at the moment) and you should be done. On first run, Dialog may ask
for confirmation. Just tick on to never be asked again and you should
be fine.

HTH.
Bernd
Technical Details
Message-ID: <1a2lxmp2b6wxp.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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.internetdienste.de!news.tu-darmstadt.de!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
References: <1nzi5hkykg6kv.dlg@sqwertz.com>

Show Full Headers
Complete Article Headers
Message-ID: <1a2lxmp2b6wxp.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: Dialog: Flush Before Exit?
Date: Tue, 27 Dec 2011 16:11:59 +0100
From: Bernd Rose <b.rose.tmpbox@expires-2011-12-31.arcornews.de>
References: <1nzi5hkykg6kv.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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.internetdienste.de!news.tu-darmstadt.de!news.belwue.de!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 (3cab6f7b.40.458)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 27
Organization: Arcor
NNTP-Posting-Date: 27 Dec 2011 16:12:50 CET
NNTP-Posting-Host: c2def2b4.newsspool3.arcor-online.net
X-Trace: DXC=jmON^Q8A`4[@>[RYkFXOIPMcF=Q^Z^V3X4Fo<]lROoRQ8kF<OcfhCO[?`DNTmo5MN[BYf[Tl<>RjZNX`D@99IC0[m^Q7=TL]nM[
X-Complaints-To: usenet-abuse@arcor.de
X-Original-Bytes: 2162