This may be of interest to people who, just like I, encountered crashes when using (dynamic) arrays.
I got GPFs on the following occasions:
Luckily I finally had some reproducable cases and I have found a very simple solution that works for me. I strongly believe the GPFs are caused by elements in the array that have a null value.
I use this general script before setting an array as a user property or returning it from a handler:
-- this is the script for a 2-dimensional array 'l_some_array'
-- change for other dimensions
step i from 1 to item 1 of dimensions (l_some_array)
step j from 1 to item 2 of dimensions (l_some_array)
if l_some_array [i][j] = null
clear l_some_array[i][j]
end if
end step
end step
Alas, my book still crashes while it fills a certain array, even in 4.0
(which was the only reason I bought it :-( ).
Any comments are welcome,
Andre
--------------------------------------------------------- = Andre Rosendaal = University of Groningen = Faculty of Arts = Computer Department = Oude Kijk in 't Jatstraat 26 = 9712 EK Groningen = Netherlands = phone: +31 50 63 57 88 = e-mail: ANDRE@LET.RUG.NL = fax: +31 50 63 72 72 ---------------------------------------------------------