Article View: news.software.readers
Article #247886Re: Dialog: Flush Before Exit?
From: Robert Miles
Date: Sat, 31 Dec 2011 17:48
Date: Sat, 31 Dec 2011 17:48
55 lines
3852 bytes
3852 bytes
On 12/30/2011 8:51 PM, Sqwertz wrote:
> On Tue, 27 Dec 2011 16:11:59 +0100, Bernd Rose wrote:
>
>> 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.)
>
> It's been mentioned here several times.
>
>>> 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');
>
> I don't want to mark all articles read. Only the ones I have
> displayed and have actually read. When dialog crashes on exit, it
> often doesn't write to disk the flags that indicate that articles have
> actually been read.
>
> In no way do I EVER went to tell Dialog to automatically mark messages
> as read unless I specifically tell it to (and then only for individual
> groups)
>
> Think of it this way: I'm writing to a USB drive and when it appears
> to be done, my power goes out. That data/FAT table has not really
> been flushed to disk and the FAT table may be corrupted. Unless I was
> able to tell it I want to extract the USB drive - to flush the buffers
> of any unwritten data by clicking thew USB icon in the system tray.
>
> That's what I want to Dialog to do with it's unwritten/cached database
> data.
>
> -sw
Another method to consider for that problem: Buy an uninterruptible
power supply (UPS) with a wattage rating at least as high as the power
supply in your computer. This should allow the computer to run from
a battery for a few minutes after the power goes off, then recharge
that battery when the power comes back on. If your computer allows
a sleep mode, some of these UPSs have connections and programs that
allow your computer to save all programs still running to the hard
drive, in a way that allows resuming from the interruption later.
Robert Miles
Technical Details
Message-ID:
<4eff4b24$0$30604$882e7ee2@usenet-news.net>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.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder5.xlned.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit3.readnews.com!s09-10.readnews.com!not-for-mailReferences:
<1nzi5hkykg6kv.dlg@sqwertz.com> <1a2lxmp2b6wxp.dlg@b.rose.tmpbox.news.arcor.de> <arnylr5ywmj5$.dlg@sqwertz.com>Show Full Headers
Complete Article Headers
Message-ID: <4eff4b24$0$30604$882e7ee2@usenet-news.net> Subject: Re: Dialog: Flush Before Exit? Date: Sat, 31 Dec 2011 11:48:44 -0600 From: Robert Miles <milesrf@Usenet-News.net> 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.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder5.xlned.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit3.readnews.com!s09-10.readnews.com!not-for-mail User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; MIME-Version: 1.0 Newsgroups: news.software.readers In-Reply-To: <arnylr5ywmj5$.dlg@sqwertz.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 55 NNTP-Posting-Host: fb2f9b3d.usenet-news.net X-Trace: DXC=TlK8kYfD\PEl1e78EI8BML^oXGM_6\KV@mX0AG3X_jUO69^N`J@UZ9CRKMAWlmQZSKCBE303ZRilOE]0Mo6Wcg`AdBC4f0mRb; KG6mfKOJ; ^XAdLbjk2^]8iJ X-Complaints-To: abuse@usenet-news.net