Hello Everyone
I have discovered that a GPF occurs using SHELL when more than 14 files are open.
I have found the problem only with W95/98 and ME. I have done tests
on W3.11/XP/2000 and found no problem.
My CONFIG.SYS file contains the setting files=120
$Compile EXE "Test.EXE"
CLS
X& = SETMEM(- 6400) ' free 100*64 bytes for file handles
' ************* Allow up to 50 file handles
! Push DS
! Mov BX,50
! Mov AH,&H67
! Int &H21
! Pop DS
' *******************************
Z = Val(Command$)
If Z = 0 Then Z = 14
For X = 1 To Z
OPEN "TEST"+Trim$(Str$(X)) FOR OUTPUT AS #X
? X;
Next X
SHELL
CLOSE
END
Anyone expeienced this?
Thanks for your help in advance
Bernie
------------------
[email protected]
[This message has been edited by Bernie Lazette (edited March 19, 2002).]
I have discovered that a GPF occurs using SHELL when more than 14 files are open.
I have found the problem only with W95/98 and ME. I have done tests
on W3.11/XP/2000 and found no problem.
My CONFIG.SYS file contains the setting files=120
$Compile EXE "Test.EXE"
CLS
X& = SETMEM(- 6400) ' free 100*64 bytes for file handles
' ************* Allow up to 50 file handles
! Push DS
! Mov BX,50
! Mov AH,&H67
! Int &H21
! Pop DS
' *******************************
Z = Val(Command$)
If Z = 0 Then Z = 14
For X = 1 To Z
OPEN "TEST"+Trim$(Str$(X)) FOR OUTPUT AS #X
? X;
Next X
SHELL
CLOSE
END
Anyone expeienced this?
Thanks for your help in advance
Bernie
------------------
[email protected]
[This message has been edited by Bernie Lazette (edited March 19, 2002).]
Comment