I don't know if its just a quirk or if it is addressable within the debugger,
but I came across the following problem:
DIM Value(5) AS STRING ' <==== I forgot to change this to 6
DIM X AS LONG
FOR X=1 TO 6 ' <==== I changed this from 5 to 6
CALL GetInput(Value(X))
NEXT X
GetInput is a DLL. When I run from IDE/Debugger, it runs fine.
When I run from outside debugger, it GPF's in the DLL.
Can (or do) we have an option for bounds checking? It would have been
helpful to catch this before going to the DLL, since the errors pointed
to the wrong program. #DEBUG is not specified in either program, so
I don't believe I have done anything to turn off bounds checking (if
it ever existed). If bounds checking is not included, please consider
this a vote to include it in the future.
------------------
Thanks,
John Kovacich
but I came across the following problem:
DIM Value(5) AS STRING ' <==== I forgot to change this to 6

DIM X AS LONG
FOR X=1 TO 6 ' <==== I changed this from 5 to 6
CALL GetInput(Value(X))
NEXT X
GetInput is a DLL. When I run from IDE/Debugger, it runs fine.
When I run from outside debugger, it GPF's in the DLL.
Can (or do) we have an option for bounds checking? It would have been
helpful to catch this before going to the DLL, since the errors pointed
to the wrong program. #DEBUG is not specified in either program, so
I don't believe I have done anything to turn off bounds checking (if
it ever existed). If bounds checking is not included, please consider
this a vote to include it in the future.
------------------
Thanks,
John Kovacich
Comment