Page 1 of 1

Program failure due to memory defects?

Posted: Tue Oct 03, 2017 8:38 am
by Dutchman
Consider this as a tip to solve 'strange' problems, in particular to Dav and George.
During development of "MakeInstall" (viewtopic.php?f=20&t=2030) I had to spent a very long time to solve a 'run-time error'
At last I started to strip the program by commenting pieces between /* and */ until only a single call was left:
• 1 I got a run-time error on the single-line 'program':
CALL Archive(Tree$,OutDir$,Install$,Ext$)

That made no sense. It should have been a syntax-error or parameter-error or else, but certainly no run-time error.

I copied then the whole content to another file and got the program running.
I can only explain it as a memory-problem and that could also be the case with the following cases

• 2 Dav got a strange syntax error:
Re: Browser with download facilities, by Dav » 19 Sep 2017
… When starting Browser.sb, a Syntax error occurs in the ButtonPressed(reset) Function on this line: But.favorites=BUTTON_PRESSED("favorites")


• 3 George got a strange run-time problem:
Re: Tree.sb to list folder contents by GeorgeMcGinn » 27 Sep 2017 and by GeorgeMcGinn » 30 Sep 2017
… I'm betting it has to do with a filetype, not a missing file. That does not make sense.

Re: Program failure due to memory defects?

Posted: Tue Oct 03, 2017 10:49 am
by Mr. Kibernetik
If you consider anything from listed above to be a bug, then bug report with minimal testing code to reproduce it will be very welcome.

Re: Program failure due to memory defects?

Posted: Tue Oct 03, 2017 12:42 pm
by Dutchman
I can not reproduce the error:
I copied then the whole content to another file and got the program running.
I can only explain it as a memory-problem
After copying I didn't change anything to run it, because it was without errors before the described problem occurred. :?

So I suppose it can not be a SB bug. ;)