🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #567

Basic Crashing

#567
From: Ian Palmer
Date: Fri, 20 Nov 1992 10:19
37 lines
1996 bytes
I have an odd problem with a number of programs I have written in
Basic. These programs, which are all based on the same WIMP
interfaceing routines (so probably herein lies the problem)
occasionally, and rather randomly bottom out - or rather Basic bottoms
out for them (how helpful).

It always seems to happen when loading another application (ie. it
only happens when loading an application, but not every time you load
an application, if you see what I mean).

What happens is that I get a rather useful error message along the
iconbar stating :

Attempt to use badly nested error handlers (or R13 corrupt)

and I also get an error box from my program stating an address
exception type thing (probably abort on data transfer).

This happens under both RO3.00 and RO3.1 (don't know about RO2), and
it seems to happen at the line in the program that calls Wimp_Poll, ie
it must crash when returning to Basic from a wimp_poll.

So what can be going wrong. I'm using a buffer of 512 bytes for
passing to the wimp_poll, so it can't be large wimp messages causing
the problem. But it's the complete randomness of it that gets me, all
will be fine, but occasionally (about once a day) the program will
bottom out on me for not good reason.

Any handle hints/pointers gratefully received...

Ian

-- 
                            E-mail : ijp@doc.ic.ac.uk
 ___           __       Snail mail : Department of Computing, Huxley Building,
  /  _   _    /_/ _   / _ _   _  _   Imperial College, 180 Queens Gate,
_/_ (_|_| )  /   (_|_(_| ) )_|/_)    London. SW7 2BZ. England.
Technical Details
Message-ID: <1eie4bINN9u8@oak8.doc.ic.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!agate!doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!agate!doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail
From: ijp@doc.ic.ac.uk (Ian Palmer)
Newsgroups: comp.sys.acorn.tech
Subject: Basic Crashing
Date: 20 Nov 1992 10:19:55 -0000
Organization: Department of Computing, Imperial College, University of London, UK.
Lines: 37
Message-ID: <1eie4bINN9u8@oak8.doc.ic.ac.uk>
NNTP-Posting-Host: oak8.doc.ic.ac.uk