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


Groups > comp.lang.basic.misc > #488

Re: Program execution problem

Path csiph.com!goblin3!goblin.stu.neva.ru!news.netfront.net!.POSTED.62.194.202.140!not-for-mail
From "R.Wieser" <address@not.available>
Newsgroups comp.lang.basic.misc
Subject Re: Program execution problem
Date Sat, 29 Aug 2020 13:46:59 +0200
Organization Netfront http://www.netfront.net/
Lines 34
Message-ID <ridf81$1mb9$1@adenine.netfront.net> (permalink)
References <FEc1H.81519$lZ.36976@fx12.iad>
Injection-Date Sat, 29 Aug 2020 11:47:14 -0000 (UTC)
Injection-Info adenine.netfront.net; posting-host="62.194.202.140"; logging-data="55657"; mail-complaints-to="news@netfront.net"
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646 Format=Flowed; Original
Xref csiph.com comp.lang.basic.misc:488

Show key headers only | View raw


Robert,

>   Notice the program stops at line 530 for no good reason,
> and all files are closed.

Under QBasic 'end' terminates the program.  Are you sure you didn't mean 
'end if' there ?

(That all the files are closed could easily be part of PDS'es clean-up 
activities before actually terminating)

> in a section of the program, 6 statement lines got executed
> in 1,3,5,2,4,6

As you have not posted the involved code and I (we) do not have any kind of 
mind-reading capabilities there is nothing I (we) can say about that.

>   One would think that a more regimented, line-numbered
> program would behave.

It certainly enables you to write goto-enabled spagetti code (as in: 
unreadable/trackable code).   Why do you think most languages dropped the 
'goto' and/or strongly advice you NOT to use it ?  :-)


Basic bug-hunting most often boils down to isolating the problem by removing 
everything that does /not/ make the problem disappear (and sometimes 
replacing variable and/or human input by fixed stuff).   If you're lucky 
you're left with a single line. :-)

Regards,
Rudy Wieser

Back to comp.lang.basic.misc | Previous | NextNext in thread | Find similar


Thread

Re: Program execution problem "R.Wieser" <address@not.available> - 2020-08-29 13:46 +0200
  Re: Program execution problem Robert Baer <robertbaer@localnet.com> - 2020-08-31 15:45 -0700
    Re: Program execution problem Rev1 Robert Baer <robertbaer@localnet.com> - 2020-08-31 21:32 -0700
      Re: Program execution problem Rev1 "R.Wieser" <address@not.available> - 2020-09-01 10:02 +0200
    Re: Program execution problem "R.Wieser" <address@not.available> - 2020-09-01 09:35 +0200
      Re: Program execution problem Robert Baer <robertbaer@localnet.com> - 2020-09-01 13:30 -0700
        Re: Program execution problem "R.Wieser" <address@not.available> - 2020-09-02 08:43 +0200

csiph-web