Re: [ARMini-support] Errors/freezes (longish)

  • From: Chris Johnson <chris@xxxxxxxxxxxxxxxxxxxxx>
  • To: armini-support@xxxxxxxxxxxxx
  • Date: Mon, 26 Mar 2012 10:46:35 +0100

OK. I can reproduce the problem on the Iyonix as well.

Running the following program on the Iyonix (which is a paraphrase of
a function (FN1) in NewIcons, modified because other functions are
not included)

DIM C% 256
FOR Z% = 0 TO 1000
FOR N% = 0 TO 2
D$="SCSI::"+STR$ N%+".$"
SYS"XOS_FSControl",37,D$,C%,,,256 TO ;H%
IF(H%AND1) THEN
  J$=":" + STR$N%
ELSE
  i%=0
  WHILE (i%?C% >= 32)
  i%+=1
  ENDWHILE
  i%?C% = 13
  D$=$C%
  J$=MID$(D$,7,LEN D$-8)
ENDIF
REM not much use printing the following thousands of times!
REM PRINT J$
NEXT
NEXT

immediately caused the system heap to jump from 256K to 316K, and the
system heap dump now contains the same stuff as the ARMini one does.

The real fix would be to tidy up the OS_FSControl, 37 code so it
still released its workspace after hitting an error.

-- 
        Chris Johnson
---
To alter your preferences or leave the group, 
visit //www.freelists.org/list/armini-support
List-related queries to support@xxxxxxxxxxxx

Other related posts: