🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #125619

Re: [Dialog] Scripting problem

#125619
From: Juergen Haible
Date: Fri, 30 May 2003 17:05
25 lines
1865 bytes
Norbert Schmidt:

> I tried my luck with a little test script, but the result was that it took
> 40tude down with an access violation and Windows even showed a blue screen. 
> 
> What did I do wrong?

Presumably only Marcus can clarify, why Dialog went down in this case.

>> AssignFile( fh, 'Test.40l' );
>> Rewrite( fh );

Just to clarify:

This "Rewrite" will create a new file for every single XOVER line. If
you don't do something with it within OnXover, it will be overwritten
immediately by the next XOVER line coming in.

And if multiple threads pull headers, this script may/will be called
multiple times as well - *at the same time*. Creating an already open
file will not work, you will at least lose some of your XOVER-files in
this case.

-jh-
Technical Details
Message-ID: <1t4yk0omw79mb.dlg@ndqf.elbiah.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <rra5kc7n7v7r.ddfywin976xx.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <1t4yk0omw79mb.dlg@ndqf.elbiah.de>
Subject: Re: [Dialog] Scripting problem
Date: Fri, 30 May 2003 19:05:21 +0200
From: Juergen Haible <juergen.haible@t-online.de>
References: <rra5kc7n7v7r.ddfywin976xx.dlg@40tude.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.readers
Organization: T-Online
Lines: 24
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.t-online.com 1054314332 00 21817 lpkbV5UVSz-LZz 030530 17:05:32
X-Complaints-To: usenet-abuse@t-online.de
X-ID: r4BbYgZJ8e+xE1OtcccpY6fZiLLi5pg2bKaFEgI8TkHtqq2ndFio0I
User-Agent: 40tude_Dialog/2.0.4.1 (5a02e464.331.168) Hamster-Pg/1.10