Subject: Possible solution to array bugs

Hello,

This may be of interest to people who, just like I, encountered crashes when using (dynamic) arrays.

I got GPFs on the following occasions:

Tech Support affirmed that more people had these problems, but could not give a solution, other than to suggest I should wait for version 4.0 (sigh....)

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 :-( ).
And still no solution from Asymetrix.

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
---------------------------------------------------------
Brian Parkhurst University of Washington
Box 357260
Seattle, WA 98195-7260
206/543-9175