Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #515

Re: Task Obey madness

From Martin Bazley <martin.bazley@blueyonder.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Task Obey madness
Message-ID <2a5e02ee51.martin@blueyonder.co.uk> (permalink)
References <6353b0ed51.martin@blueyonder.co.uk> <mpro.lntvzt002odox02pg.vinceh@softrock.co.uk>
Organization virginmedia.com
Date 2011-07-05 12:40 +0100

Show all headers | View raw


The following bytes were arranged on 4 Jul 2011 by Vince M Hudd :

> I'm inclined to say that what you're seeing is a classic 'close all'
> symptom. i.e. it looks like *something* on your system(s) is trying to close
> a file with a handle of 0.

That might explain the initial crash, but certainly not the following
insanity.

> I'd start by checking the programs involved: You mention where the OPENOUT
> commands are - but what about the CLOSE commands? Are they equally 'deep' in
> the BASIC and are you absolutely sure one isn't being issued where an
> equivalent OPENOUT hasn't already been issued, so the handle is therefore 0?
> Throw sensible checks around any CLOSE commands - only issue the CLOSE if
> the handle isn't 0 (and then set that handle *to* 0).

Beat you to it, I'm afraid - having been bitten by this many times in
the past, I have all CLOSE statements in a procedure called PROCclose,
which does this:

DEF PROCclose
IF h%<>0 CLOSE#h%:h%=0:SYS "OS_File",18,out$,filetype%
IF s%<>0 CLOSE#s%:s%=0:SYS "OS_File",6,sout$
IF p%<>0 CLOSE#p%:p%=0:SYS "OS_File",6,pout$
ENDPROC

The first three lines in the file are:

ON ERROR REPORT:PRINT " at line ";ERL:END
h%=0:s%=0:p%=0
ON ERROR:ON ERROR OFF:PROCclose:ERROR EXT ERR,REPORT$+" at line "+STR$ERL

The only other place PROCclose is called is after conversion is
complete.

And PROCclose most certainly isn't being called before the program
terminates, because the files are left open!

> Having said that, it doesn't necessarily have to be the programs you are
> experiencing problems with that are doing this - it could be something else
> entirely; What else changed around the time the problem started - did you
> install anything at that point?

Not that I'm aware of!  The only possible culprit is a recent test build
of NetSurf, which is the only thing I've downloaded recently, and
installed on both computers.  It may well have been running at the time.

-- 
  __<^>__   === RISC OS is a work of art.  Some people adore it,  ===
 / _   _ \  === others can't see the point of it, and it's really ===
( ( |_| ) ) === expensive.                                        ===
 \_>   <_/  ======================= Martin Bazley ===================

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Task Obey madness Martin Bazley <martin.bazley@blueyonder.co.uk> - 2011-07-04 21:44 +0100
  Re: Task Obey madness Vince M Hudd <vinceh@softrock.co.uk> - 2011-07-04 22:35 +0100
    Re: Task Obey madness "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-07-05 08:07 +0200
      Re: Task Obey madness Rob Davison <nospamthanks@invalid.invalid> - 2011-07-05 19:59 +1200
        Re: Task Obey madness Paul Sprangers <Paul@sprie.nl> - 2011-07-05 10:28 +0200
          Re: Task Obey madness "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-07-05 12:08 +0200
          Re: Task Obey madness Vince M Hudd <vinceh@softrock.co.uk> - 2011-07-05 11:36 +0100
            Re: Task Obey madness Paul Sprangers <Paul@sprie.nl> - 2011-07-05 12:43 +0200
              Re: Task Obey madness "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-07-05 12:51 +0200
                Re: Task Obey madness Ian Hamilton <Ian.Hamilton@AAUG.net> - 2011-07-05 12:03 +0100
                Re: Task Obey madness "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-07-05 13:32 +0200
                Re: Task Obey madness Vince M Hudd <vinceh@softrock.co.uk> - 2011-07-05 12:57 +0100
                Re: Task Obey madness "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-07-05 14:17 +0200
                Re: Task Obey madness Paul Sprangers <Paul@sprie.nl> - 2011-07-05 14:39 +0200
              Re: Task Obey madness Vince M Hudd <vinceh@softrock.co.uk> - 2011-07-05 12:22 +0100
          Re: Task Obey madness Rob Davison <nospamthanks@invalid.invalid> - 2011-07-06 08:27 +1200
          Re: Task Obey madness Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-07-06 08:15 +0200
            Re: Task Obey madness jgharston <jgh@arcade.demon.co.uk> - 2011-07-06 18:48 -0700
              Re: Task Obey madness "Ste (news)" <steve@revi11.plus.com> - 2011-07-07 13:55 +0100
              Re: Task Obey madness Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-07-12 20:07 +0200
      Re: Task Obey madness cferris@freeRemoveuk.com.invalid - 2011-07-05 09:09 +0100
        Re: Task Obey madness Steve Drain <steve@kappa.me.uk> - 2011-07-05 10:19 +0100
    Re: Task Obey madness Martin Bazley <martin.bazley@blueyonder.co.uk> - 2011-07-05 12:40 +0100
      Re: Task Obey madness Martin <News03@avisoft.f9.co.uk> - 2011-07-05 16:19 +0100
        Re: Task Obey madness Alan Adams <alan@adamshome.org.uk> - 2011-07-05 17:31 +0100
          Re: Task Obey madness Ian J Hartley <Ian.Hartley@sky.com> - 2011-07-06 12:35 +0100
            Re: Task Obey madness "Ste (news)" <steve@revi11.plus.com> - 2011-07-07 13:57 +0100
              Re: Task Obey madness Alan Adams <alan@adamshome.org.uk> - 2011-07-07 21:18 +0100
              Re: Task Obey madness Ian J Hartley <Ian.Hartley@sky.com> - 2011-07-13 12:36 +0100
                Re: Task Obey madness "Ste (news)" <steve@revi11.plus.com> - 2011-07-14 15:58 +0100
                Re: Task Obey madness Ian Hamilton <Ian.Hamilton@AAUG.net> - 2011-07-14 16:10 +0100
                Re: Task Obey madness Ian J Hartley <Ian.Hartley@sky.com> - 2011-07-17 12:30 +0100
                Re: Task Obey madness "Ste (news)" <steve@revi11.plus.com> - 2011-07-17 14:23 +0100
                Re: Task Obey madness Ian J Hartley <Ian.Hartley@sky.com> - 2011-07-17 16:14 +0100
                Re: Task Obey madness druck <news@druck.org.uk> - 2011-07-14 19:23 +0100
                Re: Task Obey madness Ian J Hartley <Ian.Hartley@sky.com> - 2011-07-17 14:17 +0100
  Re: Task Obey madness Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-07-05 22:15 +0100
    Re: Task Obey madness Rainer Schubert <dl6hbo@dl6hbo.inka.de> - 2011-07-08 17:14 +0200

csiph-web