Forum Navigation
You need to log in to create posts and topics.

Re: XREF

Posted by: David.Cottrell <David.Cottrell@...>

On Tue, 11 Nov 1997 12:04 PM, M Goodes <mailto:wave@netcom.ca> wrote:

> This may cause a problem in your code if XREF implicitly starts at zero
(I
> don't know if it does or not). This would mean that if you have created
> space for 3 records, they would be records 0, 1, and 2. The third one
> would be the undefined memory space that continues after your block. So
> when you do a loop from 0 to 3, on the third loop you end up writing to
> memory space that is probably being used for something else, thus the
> crash.

This seemed like a very good explanation (& I kicked myself for not seeing
it) - but changing the for/next to 0 to 2 worked once - and since then has
died each time.

Thanks anyway

David

------------------------------------------------------------------
Dr David Cottrell James Cook University of North
Queensland

All unconventional spellings that you might notice in the above are
intentional, and are just part of a living dynamic language.
------------------------------------------------------------------